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 d0ea0601f2425cf2a1b69656fab30ab8ebd0f236..1fe26ea4626b8551def1409304a18cfa98e70cbc 100644 |
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc |
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc |
@@ -701,6 +701,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) || |