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

Unified Diff: content/public/common/content_switches.cc

Issue 10830011: Disable WebGL on Android by default (but allow it to be enabled) (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 | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_switches.cc
diff --git a/content/public/common/content_switches.cc b/content/public/common/content_switches.cc
index 6dc97dde54ec5e7c8f5eaaec9c0900bf2a43239b..ad0746623031c90d27a02d4438c64d7901143281 100644
--- a/content/public/common/content_switches.cc
+++ b/content/public/common/content_switches.cc
@@ -86,8 +86,13 @@ const char kDisableDesktopNotifications[] = "disable-desktop-notifications";
// Disables device orientation events.
const char kDisableDeviceOrientation[] = "disable-device-orientation";
+#if defined(OS_ANDROID)
+// WebGL is disabled by default on Android.
+const char kEnableExperimentalWebGL[] = "enable-webgl";
+#else
// Disable experimental WebGL support.
const char kDisableExperimentalWebGL[] = "disable-webgl";
+#endif
// Blacklist the GPU for accelerated compositing.
const char kBlacklistAcceleratedCompositing[] =
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698