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

Unified Diff: content/gpu/gpu_main.cc

Issue 179983006: Don't start the SECCOMP sandbox early for Tegra124 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting Created 6 years, 9 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/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)

Powered by Google App Engine
This is Rietveld 408576698