summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_messages_internal.h
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-27 19:39:42 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-27 19:39:42 +0000
commit50bd645cfa2824a22f98096cb6a66bbd7cf757f4 (patch)
tree3cae036733b722b0ec731363179c5fdec5f7e137 /chrome/common/gpu_messages_internal.h
parent1bead0713628b2410ffd7ba49700c5901059d07b (diff)
downloadchromium_src-50bd645cfa2824a22f98096cb6a66bbd7cf757f4.zip
chromium_src-50bd645cfa2824a22f98096cb6a66bbd7cf757f4.tar.gz
chromium_src-50bd645cfa2824a22f98096cb6a66bbd7cf757f4.tar.bz2
When accelerated compositing is enabled, we create a plugin-like pair of windows,
CompositorHostWindow and CompositorWindow inside the RenderWidgetHostView. The host-side HWND is used to position the compositor output relative to plugins; the GPU process creates the compositor window as a child of the CompositorHostWindow. Once we land webkit bugfix 49396, ANGLE issue 3038042, Chromium issue 4671003, this will fix bugs 54301 and 61516 for windows. BUG=none TEST=none Review URL: http://codereview.chromium.org/4815001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_messages_internal.h')
-rw-r--r--chrome/common/gpu_messages_internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/gpu_messages_internal.h b/chrome/common/gpu_messages_internal.h
index c124530..10b0961 100644
--- a/chrome/common/gpu_messages_internal.h
+++ b/chrome/common/gpu_messages_internal.h
@@ -113,6 +113,16 @@ IPC_BEGIN_MESSAGES(GpuHost)
// should cause the browser to redraw the compositor's contents.
IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
+#elif defined(OS_WIN)
+ // Create and get the HWND for the compositor window
+ IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateCompositorHostWindow,
+ int32, /* renderer_id */
+ int32, /* render_view_id */
+ gfx::PluginWindowHandle /* compositor_host_id */)
+
+ IPC_MESSAGE_CONTROL2(GpuHostMsg_ScheduleComposite,
+ int32, /* renderer_id */
+ int32 /* render_view_id */)
#endif
IPC_END_MESSAGES(GpuHost)