summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_command_buffer_stub.h
diff options
context:
space:
mode:
authorapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-14 00:34:07 +0000
committerapatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-14 00:34:07 +0000
commit392fbb3dd27259adc0a0ff1127bc19ad5c317ce5 (patch)
treee5bf30506de98cae91afbfb48ea38a6a9e84fb47 /content/common/gpu/gpu_command_buffer_stub.h
parent1eebbf98440fdb3fed0e8a921c2e31474f91bb1e (diff)
downloadchromium_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_command_buffer_stub.h')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index 57143a6..0519e8c 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -142,7 +142,7 @@ class GpuCommandBufferStub
// Message handlers:
void OnInitialize(IPC::Message* reply_message);
- void OnSetGetBuffer(int32 shm_id);
+ void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message);
void OnSetSharedStateBuffer(int32 shm_id, IPC::Message* reply_message);
void OnSetParent(int32 parent_route_id,
uint32 parent_texture_id,
@@ -152,10 +152,14 @@ class GpuCommandBufferStub
void OnAsyncFlush(int32 put_offset, uint32 flush_count);
void OnEcho(const IPC::Message& message);
void OnRescheduled();
- void OnRegisterTransferBuffer(int32 id,
- base::SharedMemoryHandle transfer_buffer,
- uint32 size);
- void OnDestroyTransferBuffer(int32 id);
+ void OnCreateTransferBuffer(uint32 size,
+ int32 id_request,
+ IPC::Message* reply_message);
+ void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer,
+ uint32 size,
+ int32 id_request,
+ IPC::Message* reply_message);
+ void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message);
void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
void OnCreateVideoDecoder(