| 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 9c0242d10db0f4c207249db629ef4db9313448ec..53d736483c29e33bb6e62362950d9b7477deb032 100644
|
| --- a/gpu/command_buffer/service/in_process_command_buffer.cc
|
| +++ b/gpu/command_buffer/service/in_process_command_buffer.cc
|
| @@ -166,7 +166,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_ = new gl::GLShareGroup();
|
| return share_group_;
|
| }
|
|
|
| @@ -362,11 +362,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(
|
|
|