summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-12 23:29:40 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-12 23:29:40 +0000
commit503b3a2ed9be72b3697f1c02cdc7efd29fec987a (patch)
treef715ec00989bded6c3bdb3919cace05a7d33fc05 /ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
parent6e6f8836c975eebd3620974c3de6d564967821e9 (diff)
downloadchromium_src-503b3a2ed9be72b3697f1c02cdc7efd29fec987a.zip
chromium_src-503b3a2ed9be72b3697f1c02cdc7efd29fec987a.tar.gz
chromium_src-503b3a2ed9be72b3697f1c02cdc7efd29fec987a.tar.bz2
Revert "Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer""
This reverts commit 84677847c10d0319d8d996aea9b310add85c0bd3. TEST=ran browser tests on OSX BUG=103989 TBR=apatrick@chromiu.org Review URL: http://codereview.chromium.org/8919014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114114 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc')
-rw-r--r--ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
index 5cc9661..bea32ab 100644
--- a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
+++ b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
@@ -30,20 +30,18 @@ PP_Resource CreateRaw(PP_Instance instance,
instance, share_context, attrib_list);
}
-PP_Bool InitCommandBuffer(PP_Resource context, int32_t size) {
+PP_Bool InitCommandBuffer(PP_Resource context) {
EnterGraphics3D enter(context, true);
if (enter.failed())
return PP_FALSE;
- return enter.object()->InitCommandBuffer(size);
+ return enter.object()->InitCommandBuffer();
}
-PP_Bool GetRingBuffer(PP_Resource context,
- int* shm_handle,
- uint32_t* shm_size) {
+PP_Bool SetGetBuffer(PP_Resource context, int32_t transfer_buffer_id) {
EnterGraphics3D enter(context, true);
if (enter.failed())
return PP_FALSE;
- return enter.object()->GetRingBuffer(shm_handle, shm_size);
+ return enter.object()->SetGetBuffer(transfer_buffer_id);
}
PP_Graphics3DTrustedState GetState(PP_Resource context) {
@@ -103,7 +101,7 @@ PP_Graphics3DTrustedState FlushSyncFast(PP_Resource context,
const PPB_Graphics3DTrusted g_ppb_graphics_3d_trusted_thunk = {
&CreateRaw,
&InitCommandBuffer,
- &GetRingBuffer,
+ &SetGetBuffer,
&GetState,
&CreateTransferBuffer,
&DestroyTransferBuffer,