OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |