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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // By default, file:// URIs cannot read other file:// URIs. This is an 9 // By default, file:// URIs cannot read other file:// URIs. This is an
10 // override for developers who need the old behavior for testing. 10 // override for developers who need the old behavior for testing.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Disable deferred 2d canvas rendering. 80 // Disable deferred 2d canvas rendering.
81 const char kDisableDeferred2dCanvas[] = "disable-deferred-2d-canvas"; 81 const char kDisableDeferred2dCanvas[] = "disable-deferred-2d-canvas";
82 82
83 // Disables desktop notifications (default enabled on windows). 83 // Disables desktop notifications (default enabled on windows).
84 const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; 84 const char kDisableDesktopNotifications[] = "disable-desktop-notifications";
85 85
86 // Disables device orientation events. 86 // Disables device orientation events.
87 const char kDisableDeviceOrientation[] = "disable-device-orientation"; 87 const char kDisableDeviceOrientation[] = "disable-device-orientation";
88 88
89 #if defined(OS_ANDROID)
90 // WebGL is disabled by default on Android.
91 const char kEnableExperimentalWebGL[] = "enable-webgl";
92 #else
89 // Disable experimental WebGL support. 93 // Disable experimental WebGL support.
90 const char kDisableExperimentalWebGL[] = "disable-webgl"; 94 const char kDisableExperimentalWebGL[] = "disable-webgl";
95 #endif
91 96
92 // Blacklist the GPU for accelerated compositing. 97 // Blacklist the GPU for accelerated compositing.
93 const char kBlacklistAcceleratedCompositing[] = 98 const char kBlacklistAcceleratedCompositing[] =
94 "blacklist-accelerated-compositing"; 99 "blacklist-accelerated-compositing";
95 100
96 // Blacklist the GPU for WebGL. 101 // Blacklist the GPU for WebGL.
97 const char kBlacklistWebGL[] = "blacklist-webgl"; 102 const char kBlacklistWebGL[] = "blacklist-webgl";
98 103
99 // Disable FileSystem API. 104 // Disable FileSystem API.
100 const char kDisableFileSystem[] = "disable-file-system"; 105 const char kDisableFileSystem[] = "disable-file-system";
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 const char kDefaultTileWidth[] = "default-tile-width"; 676 const char kDefaultTileWidth[] = "default-tile-width";
672 const char kDefaultTileHeight[] = "default-tile-height"; 677 const char kDefaultTileHeight[] = "default-tile-height";
673 678
674 // Sets the width and height above which a composited layer will get tiled. 679 // Sets the width and height above which a composited layer will get tiled.
675 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; 680 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
676 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; 681 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
677 682
678 const char kFixedPositionCreatesStackingContext[] 683 const char kFixedPositionCreatesStackingContext[]
679 = "fixed-position-creates-stacking-context"; 684 = "fixed-position-creates-stacking-context";
680 } // namespace switches 685 } // namespace switches
OLDNEW
« 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