Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc

Issue 8865008: Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
===================================================================
--- ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc (revision 113511)
+++ ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc (working copy)
@@ -30,18 +30,20 @@
instance, share_context, attrib_list);
}
-PP_Bool InitCommandBuffer(PP_Resource context) {
+PP_Bool InitCommandBuffer(PP_Resource context, int32_t size) {
EnterGraphics3D enter(context, true);
if (enter.failed())
return PP_FALSE;
- return enter.object()->InitCommandBuffer();
+ return enter.object()->InitCommandBuffer(size);
}
-PP_Bool SetGetBuffer(PP_Resource context, int32_t transfer_buffer_id) {
+PP_Bool GetRingBuffer(PP_Resource context,
+ int* shm_handle,
+ uint32_t* shm_size) {
EnterGraphics3D enter(context, true);
if (enter.failed())
return PP_FALSE;
- return enter.object()->SetGetBuffer(transfer_buffer_id);
+ return enter.object()->GetRingBuffer(shm_handle, shm_size);
}
PP_Graphics3DTrustedState GetState(PP_Resource context) {
@@ -101,7 +103,7 @@
const PPB_Graphics3DTrusted g_ppb_graphics_3d_trusted_thunk = {
&CreateRaw,
&InitCommandBuffer,
- &SetGetBuffer,
+ &GetRingBuffer,
&GetState,
&CreateTransferBuffer,
&DestroyTransferBuffer,
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_api.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698