| Index: gpu/command_buffer/service/in_process_command_buffer.cc
|
| diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
|
| index 71a65d7305f8b5c29aff4d67912f89b60e762b24..5e594604fe5347c84c2b723abedeafea5cb8dcf9 100644
|
| --- a/gpu/command_buffer/service/in_process_command_buffer.cc
|
| +++ b/gpu/command_buffer/service/in_process_command_buffer.cc
|
| @@ -167,7 +167,7 @@ InProcessCommandBuffer::Service::gpu_driver_bug_workarounds() {
|
|
|
| scoped_refptr<gl::GLShareGroup> InProcessCommandBuffer::Service::share_group() {
|
| if (!share_group_.get())
|
| - share_group_ = new gl::GLShareGroup;
|
| + share_group_ = gl::CreateGLShareGroup();
|
| return share_group_;
|
| }
|
|
|
| @@ -363,11 +363,11 @@ bool InProcessCommandBuffer::InitializeOnGpuThread(
|
| ->feature_info()
|
| ->workarounds()
|
| .use_virtualized_gl_contexts) {
|
| - context_ = gl_share_group_->GetSharedContext();
|
| + context_ = gl_share_group_->GetSharedContext(surface_.get());
|
| if (!context_.get()) {
|
| context_ = gl::init::CreateGLContext(
|
| gl_share_group_.get(), surface_.get(), params.attribs.gpu_preference);
|
| - gl_share_group_->SetSharedContext(context_.get());
|
| + gl_share_group_->SetSharedContext(surface_.get(), context_.get());
|
| }
|
|
|
| context_ = new GLContextVirtual(
|
|
|