| Index: content/gpu/gpu_main.cc
|
| diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
|
| index 8176221343fddde1afb908558dd203b0990e669b..718ba21de864a774508c7a4f037e11a57bc76dd3 100644
|
| --- a/content/gpu/gpu_main.cc
|
| +++ b/content/gpu/gpu_main.cc
|
| @@ -208,11 +208,14 @@ int GpuMain(const MainFunctionParams& parameters) {
|
| bool initialized_gl_context = false;
|
| bool should_initialize_gl_context = false;
|
| #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
|
| - // On Chrome OS ARM, GPU driver userspace creates threads when initializing
|
| - // a GL context, so start the sandbox early.
|
| - gpu_info.sandboxed = StartSandboxLinux(gpu_info, watchdog_thread.get(),
|
| - should_initialize_gl_context);
|
| - initialized_sandbox = true;
|
| + // On Chrome OS ARM Mali, GPU driver userspace creates threads when
|
| + // initializing a GL context, so start the sandbox early.
|
| + if (!command_line.HasSwitch(
|
| + switches::kGpuSandboxStartAfterInitialization)) {
|
| + gpu_info.sandboxed = StartSandboxLinux(gpu_info, watchdog_thread.get(),
|
| + should_initialize_gl_context);
|
| + initialized_sandbox = true;
|
| + }
|
| #endif
|
| #endif // defined(OS_LINUX)
|
|
|
|
|