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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const char kDisableAcceleratedVideoDecode[] = | 98 const char kDisableAcceleratedVideoDecode[] = |
99 "disable-accelerated-video-decode"; | 99 "disable-accelerated-video-decode"; |
100 | 100 |
101 // Disable the ApplicationCache. | 101 // Disable the ApplicationCache. |
102 const char kDisableApplicationCache[] = "disable-application-cache"; | 102 const char kDisableApplicationCache[] = "disable-application-cache"; |
103 | 103 |
104 // Disable limits on the number of backing stores. Can prevent blinking for | 104 // Disable limits on the number of backing stores. Can prevent blinking for |
105 // users with many windows/tabs and lots of memory. | 105 // users with many windows/tabs and lots of memory. |
106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
107 | 107 |
108 // Disable the creation of compositing layers when it would prevent LCD text. | 108 // See comment for kEnableCompositingForFixedPosition. |
109 const char kDisablePreferCompositingToLCDText[] = | 109 const char kDisableCompositingForFixedPosition[] = |
110 "disable-prefer-compositing-to-lcd-text"; | 110 "disable-fixed-position-compositing"; |
111 | 111 |
112 // See comment for kEnableCompositingForTransition. | 112 // See comment for kEnableCompositingForTransition. |
113 const char kDisableCompositingForTransition[] = | 113 const char kDisableCompositingForTransition[] = |
114 "disable-transition-compositing"; | 114 "disable-transition-compositing"; |
115 | 115 |
116 // Disables HTML5 DB support. | 116 // Disables HTML5 DB support. |
117 const char kDisableDatabases[] = "disable-databases"; | 117 const char kDisableDatabases[] = "disable-databases"; |
118 | 118 |
119 // Disables delegated renderer. | 119 // Disables delegated renderer. |
120 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; | 120 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // one composited layer to avoid pathological layer counts. | 304 // one composited layer to avoid pathological layer counts. |
305 const char kEnableLayerSquashing[] = | 305 const char kEnableLayerSquashing[] = |
306 "enable-layer-squashing"; | 306 "enable-layer-squashing"; |
307 | 307 |
308 // Enable experimental container node culling. | 308 // Enable experimental container node culling. |
309 const char kEnableContainerCulling[] = "enable-container-culling"; | 309 const char kEnableContainerCulling[] = "enable-container-culling"; |
310 | 310 |
311 // Use a BeginFrame signal from browser to renderer to schedule rendering. | 311 // Use a BeginFrame signal from browser to renderer to schedule rendering. |
312 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; | 312 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; |
313 | 313 |
314 // Enable the creation of compositing layers when it would prevent LCD text. | 314 // Enable the creation of compositing layers for fixed position |
315 const char kEnablePreferCompositingToLCDText[] = | 315 // elements. Three options are needed to support four possible scenarios: |
316 "enable-prefer-compositing-to-lcd-text"; | 316 // 1. Default (disabled) |
| 317 // 2. Enabled always (to allow dogfooding) |
| 318 // 3. Disabled always (to give safety fallback for users) |
| 319 // 4. Enabled only if we detect a highDPI display |
| 320 // |
| 321 // Option #4 may soon be the default, because the feature is needed soon for |
| 322 // high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will |
| 323 // override Option #4. |
| 324 const char kEnableCompositingForFixedPosition[] = |
| 325 "enable-fixed-position-compositing"; |
317 | 326 |
318 // Enable/Disable the creation of compositing layers for RenderLayers with a | 327 // Enable/Disable the creation of compositing layers for RenderLayers with a |
319 // transition on a property that supports accelerated animation (that is, | 328 // transition on a property that supports accelerated animation (that is, |
320 // opacity, -webkit-transform, and -webkit-filter), even when no animation is | 329 // opacity, -webkit-transform, and -webkit-filter), even when no animation is |
321 // running. These options allow for three possible scenarios: | 330 // running. These options allow for three possible scenarios: |
322 // 1. Default (enabled only if we dectect a highDPI display) | 331 // 1. Default (enabled only if we dectect a highDPI display) |
323 // 2. Enabled always. | 332 // 2. Enabled always. |
324 // 3. Disabled always. | 333 // 3. Disabled always. |
325 const char kEnableCompositingForTransition[] = | 334 const char kEnableCompositingForTransition[] = |
326 "enable-transition-compositing"; | 335 "enable-transition-compositing"; |
(...skipping 30 matching lines...) Expand all Loading... |
357 | 366 |
358 // Allow heuristics to determine when a layer tile should be drawn with the | 367 // Allow heuristics to determine when a layer tile should be drawn with the |
359 // Skia GPU backend. Only valid with GPU accelerated compositing + | 368 // Skia GPU backend. Only valid with GPU accelerated compositing + |
360 // impl-side painting. | 369 // impl-side painting. |
361 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; | 370 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; |
362 | 371 |
363 // When using CPU rasterizing generate low resolution tiling. Low res | 372 // When using CPU rasterizing generate low resolution tiling. Low res |
364 // tiles may be displayed during fast scrolls especially on slower devices. | 373 // tiles may be displayed during fast scrolls especially on slower devices. |
365 const char kEnableLowResTiling[] = "enable-low-res-tiling"; | 374 const char kEnableLowResTiling[] = "enable-low-res-tiling"; |
366 | 375 |
| 376 // See comment for kEnableCompositingForFixedPosition. |
| 377 const char kEnableHighDpiCompositingForFixedPosition[] = |
| 378 "enable-high-dpi-fixed-position-compositing"; |
| 379 |
367 // Paint content on the compositor thread instead of the main thread. | 380 // Paint content on the compositor thread instead of the main thread. |
368 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | 381 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
369 | 382 |
370 // Enables support for inband text tracks in media content. | 383 // Enables support for inband text tracks in media content. |
371 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; | 384 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; |
372 | 385 |
373 // Force logging to be enabled. Logging is disabled by default in release | 386 // Force logging to be enabled. Logging is disabled by default in release |
374 // builds. | 387 // builds. |
375 const char kEnableLogging[] = "enable-logging"; | 388 const char kEnableLogging[] = "enable-logging"; |
376 | 389 |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 // Enable the Win32K process mitigation policy for renderer processes which | 940 // Enable the Win32K process mitigation policy for renderer processes which |
928 // prevents them from invoking user32 and gdi32 system calls which enter | 941 // prevents them from invoking user32 and gdi32 system calls which enter |
929 // the kernel. This is only supported on Windows 8 and beyond. | 942 // the kernel. This is only supported on Windows 8 and beyond. |
930 const char kEnableWin32kRendererLockDown[] | 943 const char kEnableWin32kRendererLockDown[] |
931 = "enable_win32k_renderer_lockdown"; | 944 = "enable_win32k_renderer_lockdown"; |
932 #endif | 945 #endif |
933 | 946 |
934 // Don't dump stuff here, follow the same order as the header. | 947 // Don't dump stuff here, follow the same order as the header. |
935 | 948 |
936 } // namespace switches | 949 } // namespace switches |
OLD | NEW |