diff options
Diffstat (limited to 'chrome/common/command_buffer_messages_internal.h')
-rw-r--r-- | chrome/common/command_buffer_messages_internal.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/common/command_buffer_messages_internal.h b/chrome/common/command_buffer_messages_internal.h index 274223b5..f6fb423 100644 --- a/chrome/common/command_buffer_messages_internal.h +++ b/chrome/common/command_buffer_messages_internal.h @@ -41,4 +41,15 @@ IPC_BEGIN_MESSAGES(CommandBuffer) 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) |