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

Unified Diff: content/gpu/gpu_main.cc

Issue 10690116: Add env var for GPU process sandbox. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 92afb3b12ab3b37d201d4cfdcd3bb30eb2bda6b2..6ab3247551288917d5d739fec2dd57e001ded929 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -96,6 +96,13 @@ int GpuMain(const content::MainFunctionParams& parameters) {
command_line.GetSwitchValueASCII(switches::kGpuDriverVersion);
content::GetContentClient()->SetGpuInfo(gpu_info);
+#if defined(OS_CHROMEOS)
+ // On Chrome OS, we can now sandbox the GPU process using seccomp filter.
+ // This restricts calls to open(), so set the config line in /etc/drirc as
+ // an environment variable.
+ base::Environment::Create()->SetVar("force_s3tc_enable", "true");
piman 2012/07/10 23:53:05 Sigh... that file may be used to do per-platform c
+#endif
+
// Load and initialize the GL implementation and locate the GL entry points.
if (gfx::GLSurface::InitializeOneOff()) {
#if defined(OS_LINUX)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698