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

Unified Diff: content/browser/gpu/gpu_data_manager_impl_private.cc

Issue 1542013005: Add a new driver bug workaround SANDBOX_START_EARLY Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and remove gyp support Created 4 years, 2 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: content/browser/gpu/gpu_data_manager_impl_private.cc
diff --git a/content/browser/gpu/gpu_data_manager_impl_private.cc b/content/browser/gpu/gpu_data_manager_impl_private.cc
index 14fe683eb76b9f2e60966f5dcb96ca340cb3977d..756bfb08052f359e48855c281d9576d0425a4315 100644
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -707,6 +707,12 @@ void GpuDataManagerImplPrivate::AppendGpuCommandLine(
gpu_driver_bugs_.end()) {
command_line->AppendSwitch(switches::kDisableDirectComposition);
}
+ if (gpu_driver_bugs_.find(gpu::SANDBOX_START_EARLY) !=
+ gpu_driver_bugs_.end() &&
+ !command_line->HasSwitch(switches::kGpuTestingGLRenderer) &&
+ !command_line->HasSwitch(switches::kGpuTestingGLVersion)) {
+ command_line->AppendSwitch(switches::kGpuSandboxStartEarly);
+ }
if (use_swiftshader_) {
command_line->AppendSwitchASCII(switches::kUseGL, "swiftshader");
} else if ((IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL) ||

Powered by Google App Engine
This is Rietveld 408576698