OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/shared_memory.h" | 5 #include "base/shared_memory.h" |
6 #include "ipc/ipc_message_macros.h" | 6 #include "ipc/ipc_message_macros.h" |
7 | 7 |
8 IPC_BEGIN_MESSAGES(CommandBuffer) | 8 IPC_BEGIN_MESSAGES(CommandBuffer) |
9 // Initialize a command buffer with the given number of command entries. | 9 // Initialize a command buffer with the given number of command entries. |
10 // Returns the shared memory handle for the command buffer mapped to the | 10 // Returns the shared memory handle for the command buffer mapped to the |
(...skipping 23 matching lines...) Expand all Loading... |
34 IPC_SYNC_MESSAGE_ROUTED1_0(CommandBufferMsg_DestroyTransferBuffer, | 34 IPC_SYNC_MESSAGE_ROUTED1_0(CommandBufferMsg_DestroyTransferBuffer, |
35 int32 /* id */) | 35 int32 /* id */) |
36 | 36 |
37 // Get the shared memory handle for a transfer buffer mapped to the callers | 37 // Get the shared memory handle for a transfer buffer mapped to the callers |
38 // process. | 38 // process. |
39 IPC_SYNC_MESSAGE_ROUTED1_2(CommandBufferMsg_GetTransferBuffer, | 39 IPC_SYNC_MESSAGE_ROUTED1_2(CommandBufferMsg_GetTransferBuffer, |
40 int32 /* id */, | 40 int32 /* id */, |
41 base::SharedMemoryHandle /* transfer_buffer */, | 41 base::SharedMemoryHandle /* transfer_buffer */, |
42 size_t /* size */) | 42 size_t /* size */) |
43 | 43 |
| 44 #if defined(OS_MACOSX) |
| 45 // On Mac OS X the GPU plugin must be offscreen, because there is no |
| 46 // true cross-process window hierarchy. For this reason we must send |
| 47 // resize events explicitly to the command buffer stub so it can |
| 48 // reallocate its backing store and send the new one back to the |
| 49 // browser. This message is currently used only on 10.6 and later. |
| 50 IPC_MESSAGE_ROUTED2(CommandBufferMsg_SetWindowSize, |
| 51 int32 /* width */, |
| 52 int32 /* height */) |
| 53 #endif |
| 54 |
44 IPC_END_MESSAGES(CommandBuffer) | 55 IPC_END_MESSAGES(CommandBuffer) |
OLD | NEW |