| Index: ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
|
| ===================================================================
|
| --- ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc (revision 113254)
|
| +++ 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,
|
|
|