Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 1871613002: Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698