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 |
84 // Disables hardware acceleration of video decode, where available. | 88 // Disables hardware acceleration of video decode, where available. |
85 const char kDisableAcceleratedVideoDecode[] = | 89 const char kDisableAcceleratedVideoDecode[] = |
86 "disable-accelerated-video-decode"; | 90 "disable-accelerated-video-decode"; |
87 | 91 |
88 // Disable the ApplicationCache. | 92 // Disable the ApplicationCache. |
89 const char kDisableApplicationCache[] = "disable-application-cache"; | 93 const char kDisableApplicationCache[] = "disable-application-cache"; |
90 | 94 |
91 // Disable limits on the number of backing stores. Can prevent blinking for | 95 // Disable limits on the number of backing stores. Can prevent blinking for |
92 // users with many windows/tabs and lots of memory. | 96 // users with many windows/tabs and lots of memory. |
93 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 97 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 const char kEnableBleedingEdgeRenderingFastPaths[] = | 299 const char kEnableBleedingEdgeRenderingFastPaths[] = |
296 "enable-bleeding-edge-rendering-fast-paths"; | 300 "enable-bleeding-edge-rendering-fast-paths"; |
297 | 301 |
298 // Enables LCD text. | 302 // Enables LCD text. |
299 const char kEnableLCDText[] = "enable-lcd-text"; | 303 const char kEnableLCDText[] = "enable-lcd-text"; |
300 | 304 |
301 // Enables using signed distance fields when rendering text. | 305 // Enables using signed distance fields when rendering text. |
302 // Only valid if GPU rasterization is enabled as well. | 306 // Only valid if GPU rasterization is enabled as well. |
303 const char kEnableDistanceFieldText[] = "enable-distance-field-text"; | 307 const char kEnableDistanceFieldText[] = "enable-distance-field-text"; |
304 | 308 |
| 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 |
305 // Enable the experimental Credential Manager JavaScript API. | 314 // Enable the experimental Credential Manager JavaScript API. |
306 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; | 315 const char kEnableCredentialManagerAPI[] = "enable-credential-manager-api"; |
307 | 316 |
308 // Use a BeginFrame signal from browser to renderer to schedule rendering. | 317 // Use a BeginFrame signal from browser to renderer to schedule rendering. |
309 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; | 318 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; |
310 | 319 |
311 // Enable the creation of compositing layers when it would prevent LCD text. | 320 // Enable the creation of compositing layers when it would prevent LCD text. |
312 const char kEnablePreferCompositingToLCDText[] = | 321 const char kEnablePreferCompositingToLCDText[] = |
313 "enable-prefer-compositing-to-lcd-text"; | 322 "enable-prefer-compositing-to-lcd-text"; |
314 | 323 |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 #endif | 994 #endif |
986 | 995 |
987 #if defined(ENABLE_PLUGINS) | 996 #if defined(ENABLE_PLUGINS) |
988 // Enables the plugin power saver feature. | 997 // Enables the plugin power saver feature. |
989 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; | 998 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; |
990 #endif | 999 #endif |
991 | 1000 |
992 // Don't dump stuff here, follow the same order as the header. | 1001 // Don't dump stuff here, follow the same order as the header. |
993 | 1002 |
994 } // namespace switches | 1003 } // namespace switches |
OLD | NEW |