Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1349)

Unified Diff: content/browser/gpu/gpu_process_host.h

Issue 9980016: Delete background tab IOSurfaces on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed some perf issues on mac Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | content/browser/gpu/gpu_process_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 f101c6c3d4ff940708b24da479df589db44e1705..90c43b060547c9a91a1706b4d47a9872a91d8565 100644
--- a/content/browser/gpu/gpu_process_host.h
+++ b/content/browser/gpu/gpu_process_host.h
@@ -29,6 +29,7 @@ struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
struct GpuHostMsg_AcceleratedSurfaceRelease_Params;
class BrowserChildProcessHostImpl;
+class RenderWidgetHelper;
class GpuProcessHost : public content::BrowserChildProcessHostDelegate,
public IPC::Message::Sender,
@@ -95,6 +96,12 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate,
void ForceShutdown();
+ void RegisterRenderWidgetHelper(
+ int render_process_id,
+ const scoped_refptr<RenderWidgetHelper>& render_widget_helper);
+
+ void UnregisterRenderWidgetHelper(int render_process_id);
+
private:
static bool HostIsValid(GpuProcessHost* host);
@@ -117,6 +124,10 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate,
void OnCommandBufferCreated(const int32 route_id);
void OnDestroyCommandBuffer(int32 surface_id);
+#if defined(OS_MACOSX)
+ void OnAcceleratedSurfaceBuffersSwapped(
+ const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
+#endif
#if defined(OS_WIN) && !defined(USE_AURA)
void OnAcceleratedSurfaceBuffersSwapped(
const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
@@ -188,6 +199,8 @@ class GpuProcessHost : public content::BrowserChildProcessHostDelegate,
scoped_ptr<BrowserChildProcessHostImpl> process_;
+ std::map<int, scoped_refptr<RenderWidgetHelper> > render_widget_helpers_;
piman 2012/04/18 21:07:44 Is this map really necessary? There's already a re
jbates 2012/04/18 23:01:58 Sadly RenderProcessHost::FromID is UI thread only
piman 2012/04/18 23:32:22 You can have >1 GpuProcessHost because the teardow
jbates 2012/04/19 01:24:18 Hmm, a scoped_refptr with an externally owned raw
+
DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
};
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.cc » ('j') | content/browser/gpu/gpu_process_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698