| Index: gpu/command_buffer/tests/gl_manager.cc
|
| diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
|
| index 95778c9cb47fde802cd155e5cffd2260d664cda7..0570fbc6261afc583553f15fc4aea94f8ef44b6f 100644
|
| --- a/gpu/command_buffer/tests/gl_manager.cc
|
| +++ b/gpu/command_buffer/tests/gl_manager.cc
|
| @@ -289,12 +289,18 @@ void GLManager::InitializeWithCommandLine(const GLManager::Options& options,
|
|
|
| DCHECK(!command_line || !context_group);
|
| if (!context_group) {
|
| + gpu::GpuDriverBugWorkarounds::Initialize(command_line,
|
| + gpu_driver_bug_workarounds_);
|
| scoped_refptr<gles2::FeatureInfo> feature_info;
|
| - if (command_line)
|
| - feature_info = new gles2::FeatureInfo(*command_line);
|
| + if (command_line) {
|
| + gpu::GpuDriverBugWorkarounds::Initialize(command_line,
|
| + gpu_driver_bug_workarounds_);
|
| + feature_info = new gles2::FeatureInfo(*command_line,
|
| + gpu_driver_bug_workarounds_);
|
| + }
|
| context_group = new gles2::ContextGroup(
|
| - gpu_preferences_, mailbox_manager_.get(), NULL,
|
| - new gpu::gles2::ShaderTranslatorCache(gpu_preferences_),
|
| + gpu_preferences_, gpu_driver_bug_workarounds_, mailbox_manager_.get(),
|
| + NULL, new gpu::gles2::ShaderTranslatorCache(gpu_preferences_),
|
| new gpu::gles2::FramebufferCompletenessCache, feature_info, NULL, NULL,
|
| options.bind_generates_resource);
|
| }
|
| @@ -463,7 +469,7 @@ void GLManager::Destroy() {
|
| }
|
| }
|
|
|
| -const gpu::gles2::FeatureInfo::Workarounds& GLManager::workarounds() const {
|
| +const gpu::GpuDriverBugWorkarounds& GLManager::workarounds() const {
|
| return decoder_->GetContextGroup()->feature_info()->workarounds();
|
| }
|
|
|
|
|