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 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. | 75 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. |
76 // This is controlled by policy and is kept separate from the other | 76 // This is controlled by policy and is kept separate from the other |
77 // enable/disable switches to avoid accidentally regressing the policy | 77 // enable/disable switches to avoid accidentally regressing the policy |
78 // support for controlling access to these APIs. | 78 // support for controlling access to these APIs. |
79 const char kDisable3DAPIs[] = "disable-3d-apis"; | 79 const char kDisable3DAPIs[] = "disable-3d-apis"; |
80 | 80 |
81 // Disable gpu-accelerated 2d canvas. | 81 // Disable gpu-accelerated 2d canvas. |
82 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; | 82 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; |
83 | 83 |
84 // Disables layer squashing. | |
85 const char kDisableLayerSquashing[] = | |
86 "disable-layer-squashing"; | |
87 | |
88 // Disables hardware acceleration of video decode, where available. | 84 // Disables hardware acceleration of video decode, where available. |
89 const char kDisableAcceleratedVideoDecode[] = | 85 const char kDisableAcceleratedVideoDecode[] = |
90 "disable-accelerated-video-decode"; | 86 "disable-accelerated-video-decode"; |
91 | 87 |
92 // Disable the ApplicationCache. | 88 // Disable the ApplicationCache. |
93 const char kDisableApplicationCache[] = "disable-application-cache"; | 89 const char kDisableApplicationCache[] = "disable-application-cache"; |
94 | 90 |
95 // Disable limits on the number of backing stores. Can prevent blinking for | 91 // Disable limits on the number of backing stores. Can prevent blinking for |
96 // users with many windows/tabs and lots of memory. | 92 // users with many windows/tabs and lots of memory. |
97 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 93 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 const char kEnableBleedingEdgeRenderingFastPaths[] = | 295 const char kEnableBleedingEdgeRenderingFastPaths[] = |
300 "enable-bleeding-edge-rendering-fast-paths"; | 296 "enable-bleeding-edge-rendering-fast-paths"; |
301 | 297 |
302 // Enables LCD text. | 298 // Enables LCD text. |
303 const char kEnableLCDText[] = "enable-lcd-text"; | 299 const char kEnableLCDText[] = "enable-lcd-text"; |
304 | 300 |
305 // Enables using signed distance fields when rendering text. | 301 // Enables using signed distance fields when rendering text. |
306 // Only valid if GPU rasterization is enabled as well. | 302 // Only valid if GPU rasterization is enabled as well. |
307 const char kEnableDistanceFieldText[] = "enable-distance-field-text"; | 303 const char kEnableDistanceFieldText[] = "enable-distance-field-text"; |
308 | 304 |
309 // Enables experimental feature that maps multiple RenderLayers to | |
310 // one composited layer to avoid pathological layer counts. | |
311 const char kEnableLayerSquashing[] = | |
312 "enable-layer-squashing"; | |
313 | |
314 // Enable the experimental Credential Manager JavaScript API. | 305 // Enable the experimental Credential Manager JavaScript API. |
315 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; | 306 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; |
316 | 307 |
317 // Use a BeginFrame signal from browser to renderer to schedule rendering. | 308 // Use a BeginFrame signal from browser to renderer to schedule rendering. |
318 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; | 309 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; |
319 | 310 |
320 // Enable the creation of compositing layers when it would prevent LCD text. | 311 // Enable the creation of compositing layers when it would prevent LCD text. |
321 const char kEnablePreferCompositingToLCDText[] = | 312 const char kEnablePreferCompositingToLCDText[] = |
322 "enable-prefer-compositing-to-lcd-text"; | 313 "enable-prefer-compositing-to-lcd-text"; |
323 | 314 |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 #endif | 985 #endif |
995 | 986 |
996 #if defined(ENABLE_PLUGINS) | 987 #if defined(ENABLE_PLUGINS) |
997 // Enables the plugin power saver feature. | 988 // Enables the plugin power saver feature. |
998 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; | 989 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; |
999 #endif | 990 #endif |
1000 | 991 |
1001 // Don't dump stuff here, follow the same order as the header. | 992 // Don't dump stuff here, follow the same order as the header. |
1002 | 993 |
1003 } // namespace switches | 994 } // namespace switches |
OLD | NEW |