summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/render_widget_host_view_win.h
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 21:42:06 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-19 21:42:06 +0000
commitc03a6e7395d13e54365635c6396362a546b796e1 (patch)
treea3321f370dec32331553509591b4174660dec9e9 /chrome/browser/renderer_host/render_widget_host_view_win.h
parenta7b85b1c6333f420a5eb43d2899ae56ac487df60 (diff)
downloadchromium_src-c03a6e7395d13e54365635c6396362a546b796e1.zip
chromium_src-c03a6e7395d13e54365635c6396362a546b796e1.tar.gz
chromium_src-c03a6e7395d13e54365635c6396362a546b796e1.tar.bz2
Progress towards fixing 77536
This first thing this CL does is plumbs through the surface that the GPU will eventually render to very early on (with the ViewMsg_New and ViewMsg_CreateNew IPCs). Previously, these surfaces were acquired at the time that GPU got a request for a command buffer. This required mediation by the browser UI thread. With this CL, we pre-acquire the surfaces so that they can be passed with the request for the command buffer. This will allow us to handle the request on the browser IO thread. The second thing this CL does is change the surface management a bit. When surfaces were acquired and released when command buffers were created and destroyed, the GPU process host was natural manager of surfaces. This pushes the management further down into the RWHV level and GtkNativeViewManager (on Linux). It fixes a minor resource leak. BUG=first stage of 77536 TEST=By hand WebGL, 3D CSS, Pepper 3D on Linux, Windows, and Mac. Review URL: http://codereview.chromium.org/6840060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82165 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host_view_win.h')
-rw-r--r--chrome/browser/renderer_host/render_widget_host_view_win.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.h b/chrome/browser/renderer_host/render_widget_host_view_win.h
index e2d3aa8..d90487c 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_win.h
+++ b/chrome/browser/renderer_host/render_widget_host_view_win.h
@@ -161,8 +161,7 @@ class RenderWidgetHostViewWin
virtual bool ContainsNativeView(gfx::NativeView native_view) const;
virtual void SetVisuallyDeemphasized(const SkColor* color, bool animate);
- virtual gfx::PluginWindowHandle AcquireCompositingSurface();
- virtual void ReleaseCompositingSurface(gfx::PluginWindowHandle surface);
+ virtual gfx::PluginWindowHandle GetCompositingSurface();
virtual void ShowCompositorHostWindow(bool show);
virtual void OnAccessibilityNotifications(