| Index: webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
|
| diff --git a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
|
| index 2794436a12597d9c1bcef5a5f1b7fcc052ea5c3b..7e179a3c299f28c83f9c487f4d961d814a1b7bea 100644
|
| --- a/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc
|
| @@ -87,14 +87,13 @@ PPB_Graphics3D_API* PPB_Graphics3D_Impl::AsPPB_Graphics3D_API() {
|
| return this;
|
| }
|
|
|
| -PP_Bool PPB_Graphics3D_Impl::InitCommandBuffer(int32_t size) {
|
| - return PP_FromBool(GetCommandBuffer()->Initialize(size));
|
| +PP_Bool PPB_Graphics3D_Impl::InitCommandBuffer() {
|
| + return PP_FromBool(GetCommandBuffer()->Initialize());
|
| }
|
|
|
| -PP_Bool PPB_Graphics3D_Impl::GetRingBuffer(int* shm_handle,
|
| - uint32_t* shm_size) {
|
| - gpu::Buffer buffer = GetCommandBuffer()->GetRingBuffer();
|
| - return ShmToHandle(buffer.shared_memory, buffer.size, shm_handle, shm_size);
|
| +PP_Bool PPB_Graphics3D_Impl::SetGetBuffer(int32_t transfer_buffer_id) {
|
| + GetCommandBuffer()->SetGetBuffer(transfer_buffer_id);
|
| + return PP_TRUE;
|
| }
|
|
|
| PP_Graphics3DTrustedState PPB_Graphics3D_Impl::GetState() {
|
| @@ -191,7 +190,7 @@ bool PPB_Graphics3D_Impl::Init(PP_Resource share_context,
|
| return false;
|
|
|
| gpu::CommandBuffer* command_buffer = GetCommandBuffer();
|
| - if (!command_buffer->Initialize(kCommandBufferSize))
|
| + if (!command_buffer->Initialize())
|
| return false;
|
|
|
| return CreateGLES2Impl(kCommandBufferSize, kTransferBufferSize);
|
|
|