| 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 9483bf1c928833feb3b2ba7e8f84fbcb43502ff8..378e9fb5ecf1fe858166f889cb63187d94709def 100644
|
| --- a/gpu/command_buffer/service/in_process_command_buffer.cc
|
| +++ b/gpu/command_buffer/service/in_process_command_buffer.cc
|
| @@ -153,8 +153,11 @@ scoped_refptr<InProcessCommandBuffer::Service> GetInitialService(
|
|
|
| InProcessCommandBuffer::Service::Service() {}
|
|
|
| -InProcessCommandBuffer::Service::Service(const GpuPreferences& gpu_preferences)
|
| - : gpu_preferences_(gpu_preferences) {}
|
| +InProcessCommandBuffer::Service::Service(
|
| + const GpuPreferences& gpu_preferences,
|
| + const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds)
|
| + : gpu_preferences_(gpu_preferences),
|
| + gpu_driver_bug_workarounds_(gpu_driver_bug_workarounds) {}
|
|
|
| InProcessCommandBuffer::Service::~Service() {}
|
|
|
| @@ -163,6 +166,11 @@ InProcessCommandBuffer::Service::gpu_preferences() {
|
| return gpu_preferences_;
|
| }
|
|
|
| +const gpu::GpuDriverBugWorkarounds&
|
| +InProcessCommandBuffer::Service::gpu_driver_bug_workarounds() {
|
| + return gpu_driver_bug_workarounds_;
|
| +}
|
| +
|
| scoped_refptr<gfx::GLShareGroup>
|
| InProcessCommandBuffer::Service::share_group() {
|
| if (!share_group_.get())
|
| @@ -347,6 +355,7 @@ bool InProcessCommandBuffer::InitializeOnGpuThread(
|
| params.context_group
|
| ? params.context_group->decoder_->GetContextGroup()
|
| : new gles2::ContextGroup(service_->gpu_preferences(),
|
| + service_->gpu_driver_bug_workarounds(),
|
| service_->mailbox_manager(), NULL,
|
| service_->shader_translator_cache(),
|
| service_->framebuffer_completeness_cache(),
|
|
|