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

Unified Diff: gpu/command_buffer/tests/gl_ext_blend_func_extended_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
Index: gpu/command_buffer/tests/gl_ext_blend_func_extended_unittest.cc
diff --git a/gpu/command_buffer/tests/gl_ext_blend_func_extended_unittest.cc b/gpu/command_buffer/tests/gl_ext_blend_func_extended_unittest.cc
index 545fdc32b3ef553691ebc0164d2dac1f5d369f4a..b157e799a11a9949227dda2fc8efa43a435126a0 100644
--- a/gpu/command_buffer/tests/gl_ext_blend_func_extended_unittest.cc
+++ b/gpu/command_buffer/tests/gl_ext_blend_func_extended_unittest.cc
@@ -99,8 +99,7 @@ class EXTBlendFuncExtendedDrawTest : public testing::TestWithParam<bool> {
GLManager::Options options;
options.size = gfx::Size(kWidth, kHeight);
options.force_shader_name_hashing = GetParam();
- base::CommandLine command_line(*base::CommandLine::ForCurrentProcess());
- gl_.InitializeWithCommandLine(options, &command_line);
+ gl_.Initialize(options);
}
bool IsApplicable() const {
@@ -247,7 +246,7 @@ class EXTBlendFuncExtendedES3DrawTest : public EXTBlendFuncExtendedDrawTest {
options.force_shader_name_hashing = GetParam();
base::CommandLine command_line(*base::CommandLine::ForCurrentProcess());
command_line.AppendSwitch(switches::kEnableUnsafeES3APIs);
- gl_.InitializeWithCommandLine(options, &command_line);
+ gl_.InitializeWithCommandLine(options, command_line);
}
bool IsApplicable() const {
return gl_.IsInitialized() && EXTBlendFuncExtendedDrawTest::IsApplicable();

Powered by Google App Engine
This is Rietveld 408576698