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

Unified Diff: chrome/common/plugin_messages_internal.h

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | « chrome/common/io_surface_support_mac.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/plugin_messages_internal.h
===================================================================
--- chrome/common/plugin_messages_internal.h (revision 37920)
+++ chrome/common/plugin_messages_internal.h (working copy)
@@ -291,6 +291,15 @@
IPC_MESSAGE_CONTROL1(PluginMsg_ResetModalDialogEvent,
gfx::NativeViewId /* containing_window */)
+
+#if defined(OS_MACOSX)
+ // This message, used only on 10.6 and later, transmits the "fake"
+ // window handle allocated by the browser on behalf of the renderer
+ // to the GPU plugin.
+ IPC_MESSAGE_ROUTED1(PluginMsg_SetFakeGPUPluginWindowHandle,
+ gfx::PluginWindowHandle /* window */)
+#endif
+
IPC_END_MESSAGES(Plugin)
@@ -385,6 +394,29 @@
#if defined(OS_MACOSX)
IPC_MESSAGE_ROUTED1(PluginHostMsg_UpdateGeometry_ACK,
int /* ack_key */)
+
+ // This message, used only on 10.6 and later, is sent from the
+ // plug-in process to the renderer process to indicate that the GPU
+ // plugin allocated a new IOSurface object of the given width and
+ // height. This information is then forwarded on to the browser
+ // process.
+ //
+ // NOTE: the original intent was to pass a mach port as the
+ // IOSurface identifier but it looks like that will be a lot of
+ // work. For now we pass an ID from IOSurfaceGetID.
+ IPC_MESSAGE_ROUTED4(PluginHostMsg_GPUPluginSetIOSurface,
+ gfx::PluginWindowHandle /* window */,
+ int32 /* width */,
+ int32 /* height */,
+ uint64 /* identifier for IOSurface */)
+
+ // This message, currently used only on 10.6 and later, notifies the
+ // renderer process (and from there the browser process) that the
+ // GPU plugin swapped the buffers associated with the given
+ // "window", which should cause the browser to redraw the various
+ // GPU plugins' contents.
+ IPC_MESSAGE_ROUTED1(PluginHostMsg_GPUPluginBuffersSwapped,
+ gfx::PluginWindowHandle /* window */)
#endif
IPC_END_MESSAGES(PluginHost)
« no previous file with comments | « chrome/common/io_surface_support_mac.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698