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

Unified Diff: gpu/command_buffer/service/feature_info_unittest.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: Rebase 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
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info_unittest.cc
diff --git a/gpu/command_buffer/service/feature_info_unittest.cc b/gpu/command_buffer/service/feature_info_unittest.cc
index 62c3a2e0aecc8e0e7f73a7100f9cedf09edaa3c0..b1a90b46be7411cee92a182dd9ddb4e112d6ab8e 100644
--- a/gpu/command_buffer/service/feature_info_unittest.cc
+++ b/gpu/command_buffer/service/feature_info_unittest.cc
@@ -101,13 +101,15 @@ class FeatureInfoTest
GpuServiceTest::SetUpWithGLVersion(version, extensions);
TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
gl_.get(), extensions, renderer, version);
- info_ = new FeatureInfo(command_line);
+ GpuDriverBugWorkarounds gpu_driver_bug_workaround(&command_line);
+ info_ = new FeatureInfo(command_line, gpu_driver_bug_workaround);
info_->InitializeForTesting();
}
void SetupWithCommandLine(const base::CommandLine& command_line) {
GpuServiceTest::SetUp();
- info_ = new FeatureInfo(command_line);
+ GpuDriverBugWorkarounds gpu_driver_bug_workaround(&command_line);
+ info_ = new FeatureInfo(command_line, gpu_driver_bug_workaround);
}
void SetupInitExpectationsWithCommandLine(
@@ -116,7 +118,8 @@ class FeatureInfoTest
GpuServiceTest::SetUpWithGLVersion("2.0", extensions);
TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
gl_.get(), extensions, "", "");
- info_ = new FeatureInfo(command_line);
+ GpuDriverBugWorkarounds gpu_driver_bug_workaround(&command_line);
+ info_ = new FeatureInfo(command_line, gpu_driver_bug_workaround);
info_->InitializeForTesting();
}
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698