From fe8a0ce9d56facded166efad6ca4607d4df71893 Mon Sep 17 00:00:00 2001 From: "jbauman@chromium.org" Date: Sat, 7 Apr 2012 03:10:13 +0000 Subject: Cache shared texture in browser Doing CreateTexture every frame seems to cause a leak in the NVIDIA driver on some optimus systems, so instead cache the texture while it exists. BUG=115422 TEST= Review URL: http://codereview.chromium.org/10007024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131245 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/gpu/gpu_process_host.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/browser/gpu/gpu_process_host.h') diff --git a/content/browser/gpu/gpu_process_host.h b/content/browser/gpu/gpu_process_host.h index a2a2dc7..ab39961 100644 --- a/content/browser/gpu/gpu_process_host.h +++ b/content/browser/gpu/gpu_process_host.h @@ -25,6 +25,7 @@ class GpuMainThread; struct GPUCreateCommandBufferConfig; struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; +struct GpuHostMsg_AcceleratedSurfaceRelease_Params; class BrowserChildProcessHostImpl; @@ -121,6 +122,8 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate, void OnAcceleratedSurfacePostSubBuffer( const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params); void OnAcceleratedSurfaceSuspend(int32 surface_id); + void OnAcceleratedSurfaceRelease( + const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); #endif bool LaunchGpuProcess(const std::string& channel_id); -- cgit v1.1