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

Unified Diff: chrome/common/command_buffer_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/chrome_renderer.gypi ('k') | chrome/common/gpu_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/command_buffer_messages_internal.h
===================================================================
--- chrome/common/command_buffer_messages_internal.h (revision 37920)
+++ chrome/common/command_buffer_messages_internal.h (working copy)
@@ -41,4 +41,15 @@
base::SharedMemoryHandle /* transfer_buffer */,
size_t /* size */)
+#if defined(OS_MACOSX)
+ // On Mac OS X the GPU plugin must be offscreen, because there is no
+ // true cross-process window hierarchy. For this reason we must send
+ // resize events explicitly to the command buffer stub so it can
+ // reallocate its backing store and send the new one back to the
+ // browser. This message is currently used only on 10.6 and later.
+ IPC_MESSAGE_ROUTED2(CommandBufferMsg_SetWindowSize,
+ int32 /* width */,
+ int32 /* height */)
+#endif
+
IPC_END_MESSAGES(CommandBuffer)
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/common/gpu_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698