diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 00:34:07 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-14 00:34:07 +0000 |
commit | 392fbb3dd27259adc0a0ff1127bc19ad5c317ce5 (patch) | |
tree | e5bf30506de98cae91afbfb48ea38a6a9e84fb47 /content/common/gpu/gpu_messages.h | |
parent | 1eebbf98440fdb3fed0e8a921c2e31474f91bb1e (diff) | |
download | chromium_src-392fbb3dd27259adc0a0ff1127bc19ad5c317ce5.zip chromium_src-392fbb3dd27259adc0a0ff1127bc19ad5c317ce5.tar.gz chromium_src-392fbb3dd27259adc0a0ff1127bc19ad5c317ce5.tar.bz2 |
Revert 172805
> Made the registration and deletion of transfer buffers async.
>
> Added an IPC to request multiple transfer buffer IDs up front.
>
> Every renderer command buffer proxy gets some IPCs immediately after initialization.
>
> Removed request_id arg from CreateTransferBuffer. It wasn't being used.
>
> Review URL: https://chromiumcodereview.appspot.com/11308296
TBR=apatrick@chromium.org
Review URL: https://codereview.chromium.org/11578020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173018 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/gpu/gpu_messages.h')
-rw-r--r-- | content/common/gpu/gpu_messages.h | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h index 054ad49..f52cde0 100644 --- a/content/common/gpu/gpu_messages.h +++ b/content/common/gpu/gpu_messages.h @@ -492,8 +492,8 @@ IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetSharedStateBuffer, int32 /* shm_id */) // Sets the shared memory buffer used for commands. -IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetGetBuffer, - int32 /* shm_id */) +IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_SetGetBuffer, + int32 /* shm_id */) // Sets the parent command buffer. This allows the parent and child to share // textures. @@ -527,16 +527,24 @@ IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_Rescheduled) IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ConsoleMsg, GPUCommandBufferConsoleMessage /* msg */) +// Create a shared memory transfer buffer. Returns an id that can be used to +// identify the transfer buffer from a comment. +IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateTransferBuffer, + uint32 /* size */, + int32 /* id_request (-1 means any) */, + int32 /* id */) + // Register an existing shared memory transfer buffer. Returns an id that can be // used to identify the transfer buffer from a command buffer. -IPC_MESSAGE_ROUTED3(GpuCommandBufferMsg_RegisterTransferBuffer, - int32 /* id */, - base::SharedMemoryHandle /* transfer_buffer */, - uint32 /* size */) +IPC_SYNC_MESSAGE_ROUTED3_1(GpuCommandBufferMsg_RegisterTransferBuffer, + base::SharedMemoryHandle /* transfer_buffer */, + uint32 /* size */, + int32 /* id_request (-1 means any) */, + int32 /* id */) // Destroy a previously created transfer buffer. -IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyTransferBuffer, - int32 /* id */) +IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_DestroyTransferBuffer, + int32 /* id */) // Get the shared memory handle for a transfer buffer mapped to the callers // process. @@ -554,6 +562,10 @@ IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_CreateVideoDecoder, IPC_SYNC_MESSAGE_ROUTED1_0(GpuCommandBufferMsg_DestroyVideoDecoder, int /* route_id */) +// Send from command buffer stub to proxy when window is invalid and must be +// repainted. +IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_NotifyRepaint) + // Tells the GPU process to resize an offscreen frame buffer. IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_ResizeOffscreenFrameBuffer, gfx::Size /* size */) |