Chromium Code Reviews| 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..99da34e9a09cd53cbda260295d422bb9658ee401 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,8 @@ 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, |
|
piman
2012/05/25 22:41:00
nit: looks like this should fit on the same line
|
| transfer_buffer_.get(), |
| false, |
| true)); |