summaryrefslogtreecommitdiffstats
path: root/content/browser/gpu/gpu_process_host.h
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-07 03:10:13 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-07 03:10:13 +0000
commitfe8a0ce9d56facded166efad6ca4607d4df71893 (patch)
treece225617864abda2f4407a813c3aa7e64ca5aa3b /content/browser/gpu/gpu_process_host.h
parentb572ed45ad620f93f372b81019c3d5275f85b7a4 (diff)
downloadchromium_src-fe8a0ce9d56facded166efad6ca4607d4df71893.zip
chromium_src-fe8a0ce9d56facded166efad6ca4607d4df71893.tar.gz
chromium_src-fe8a0ce9d56facded166efad6ca4607d4df71893.tar.bz2
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
Diffstat (limited to 'content/browser/gpu/gpu_process_host.h')
-rw-r--r--content/browser/gpu/gpu_process_host.h3
1 files changed, 3 insertions, 0 deletions
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);