| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 97 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
| 98 | 98 |
| 99 // Disable the Blink Scheduler. Ensures there's no reordering of blink tasks. | 99 // Disable the Blink Scheduler. Ensures there's no reordering of blink tasks. |
| 100 // This switch is intended only for performance tests. | 100 // This switch is intended only for performance tests. |
| 101 const char kDisableBlinkScheduler[] = "disable-blink-scheduler"; | 101 const char kDisableBlinkScheduler[] = "disable-blink-scheduler"; |
| 102 | 102 |
| 103 // Disable the creation of compositing layers when it would prevent LCD text. | 103 // Disable the creation of compositing layers when it would prevent LCD text. |
| 104 const char kDisablePreferCompositingToLCDText[] = | 104 const char kDisablePreferCompositingToLCDText[] = |
| 105 "disable-prefer-compositing-to-lcd-text"; | 105 "disable-prefer-compositing-to-lcd-text"; |
| 106 | 106 |
| 107 // See comment for kEnableCompositingForTransition. | |
| 108 const char kDisableCompositingForTransition[] = | |
| 109 "disable-transition-compositing"; | |
| 110 | |
| 111 // Disables HTML5 DB support. | 107 // Disables HTML5 DB support. |
| 112 const char kDisableDatabases[] = "disable-databases"; | 108 const char kDisableDatabases[] = "disable-databases"; |
| 113 | 109 |
| 114 // Disables delegated renderer. | 110 // Disables delegated renderer. |
| 115 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; | 111 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; |
| 116 | 112 |
| 117 // Handles URL requests by NPAPI plugins through the renderer. | 113 // Handles URL requests by NPAPI plugins through the renderer. |
| 118 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests"; | 114 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests"; |
| 119 | 115 |
| 120 // Disable the per-domain blocking for 3D APIs after GPU reset. | 116 // Disable the per-domain blocking for 3D APIs after GPU reset. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 // Use a BeginFrame signal from browser to renderer to schedule rendering. | 313 // Use a BeginFrame signal from browser to renderer to schedule rendering. |
| 318 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; | 314 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; |
| 319 | 315 |
| 320 // Enable the creation of compositing layers when it would prevent LCD text. | 316 // Enable the creation of compositing layers when it would prevent LCD text. |
| 321 const char kEnablePreferCompositingToLCDText[] = | 317 const char kEnablePreferCompositingToLCDText[] = |
| 322 "enable-prefer-compositing-to-lcd-text"; | 318 "enable-prefer-compositing-to-lcd-text"; |
| 323 | 319 |
| 324 // PlzNavigate: Use the experimental browser-side navigation path. | 320 // PlzNavigate: Use the experimental browser-side navigation path. |
| 325 const char kEnableBrowserSideNavigation[] = "enable-browser-side-navigation"; | 321 const char kEnableBrowserSideNavigation[] = "enable-browser-side-navigation"; |
| 326 | 322 |
| 327 // Enable/Disable the creation of compositing layers for RenderLayers with a | |
| 328 // transition on a property that supports accelerated animation (that is, | |
| 329 // opacity, -webkit-transform, and -webkit-filter), even when no animation is | |
| 330 // running. These options allow for three possible scenarios: | |
| 331 // 1. Default (enabled only if we dectect a highDPI display) | |
| 332 // 2. Enabled always. | |
| 333 // 3. Disabled always. | |
| 334 const char kEnableCompositingForTransition[] = | |
| 335 "enable-transition-compositing"; | |
| 336 | |
| 337 // Defer image decoding in WebKit until painting. | 323 // Defer image decoding in WebKit until painting. |
| 338 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding"; | 324 const char kEnableDeferredImageDecoding[] = "enable-deferred-image-decoding"; |
| 339 | 325 |
| 340 // Enables delegated renderer. | 326 // Enables delegated renderer. |
| 341 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer"; | 327 const char kEnableDelegatedRenderer[] = "enable-delegated-renderer"; |
| 342 | 328 |
| 343 // Enables display list based 2d canvas implementation. Options: | 329 // Enables display list based 2d canvas implementation. Options: |
| 344 // 1. Enable: allow browser to use display list for 2d canvas (browser makes | 330 // 1. Enable: allow browser to use display list for 2d canvas (browser makes |
| 345 // decision). | 331 // decision). |
| 346 // 2. Force: browser always uses display list for 2d canvas. | 332 // 2. Force: browser always uses display list for 2d canvas. |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 #endif | 980 #endif |
| 995 | 981 |
| 996 #if defined(ENABLE_PLUGINS) | 982 #if defined(ENABLE_PLUGINS) |
| 997 // Enables the plugin power saver feature. | 983 // Enables the plugin power saver feature. |
| 998 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; | 984 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; |
| 999 #endif | 985 #endif |
| 1000 | 986 |
| 1001 // Don't dump stuff here, follow the same order as the header. | 987 // Don't dump stuff here, follow the same order as the header. |
| 1002 | 988 |
| 1003 } // namespace switches | 989 } // namespace switches |
| OLD | NEW |