| Index: ppapi/shared_impl/ppb_graphics_3d_shared.cc
|
| diff --git a/ppapi/shared_impl/ppb_graphics_3d_shared.cc b/ppapi/shared_impl/ppb_graphics_3d_shared.cc
|
| index c5397040497157a8d6c9176edec5d39a65c1d882..3a562f4392e3b6d05c792be89cdfc0a16ff3d377 100644
|
| --- a/ppapi/shared_impl/ppb_graphics_3d_shared.cc
|
| +++ b/ppapi/shared_impl/ppb_graphics_3d_shared.cc
|
| @@ -97,8 +97,10 @@ bool PPB_Graphics3D_Shared::HasPendingSwap() const {
|
| return TrackedCallback::IsPending(swap_callback_);
|
| }
|
|
|
| -bool PPB_Graphics3D_Shared::CreateGLES2Impl(int32 command_buffer_size,
|
| - int32 transfer_buffer_size) {
|
| +bool PPB_Graphics3D_Shared::CreateGLES2Impl(
|
| + int32 command_buffer_size,
|
| + int32 transfer_buffer_size,
|
| + gpu::gles2::GLES2Implementation* share_gles2) {
|
| gpu::CommandBuffer* command_buffer = GetCommandBuffer();
|
| DCHECK(command_buffer);
|
|
|
| @@ -116,7 +118,7 @@ bool PPB_Graphics3D_Shared::CreateGLES2Impl(int32 command_buffer_size,
|
| // Create the object exposing the OpenGL API.
|
| gles2_impl_.reset(new gpu::gles2::GLES2Implementation(
|
| gles2_helper_.get(),
|
| - NULL,
|
| + share_gles2 ? share_gles2->share_group() : NULL,
|
| transfer_buffer_.get(),
|
| false,
|
| true));
|
|
|