| Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc
|
| diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc
|
| index 8b71506ad0b4d4aef2a26069d6576fd465ec1d2b..9b3f952749e9e0f2adb02eda1950c56a402af78d 100644
|
| --- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc
|
| +++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc
|
| @@ -212,12 +212,9 @@ bool PluginGraphics3D::InitFromBrowserResource(PP_Resource res) {
|
|
|
| // Create and initialize the objects required to issue GLES2 calls.
|
| command_buffer_.reset(new CommandBufferNacl(res, PluginCore::GetInterface()));
|
| - command_buffer_->Initialize(kRingBufferSize);
|
| + command_buffer_->Initialize();
|
| gles2_helper_.reset(new gpu::gles2::GLES2CmdHelper(command_buffer_.get()));
|
| - gpu::Buffer buffer = command_buffer_->GetRingBuffer();
|
| - DebugPrintf("PluginGraphics3D::InitFromBrowserResource: buffer size: %d\n",
|
| - buffer.size);
|
| - if (gles2_helper_->Initialize(buffer.size)) {
|
| + if (gles2_helper_->Initialize(kRingBufferSize)) {
|
| // Request id -1 to signify 'don't care'
|
| int32 transfer_buffer_id =
|
| command_buffer_->CreateTransferBuffer(kTransferBufferSize, -1);
|
|
|