| 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 accelerated compositing for backgrounds of root layers with | |
| 85 // background-attachment: fixed. | |
| 86 const char kDisableAcceleratedFixedRootBackground[] = | |
| 87 "disable-accelerated-fixed-root-background"; | |
| 88 | |
| 89 // Disables accelerated compositing for overflow scroll. | |
| 90 const char kDisableAcceleratedOverflowScroll[] = | |
| 91 "disable-accelerated-overflow-scroll"; | |
| 92 | |
| 93 // Disables layer squashing. | 84 // Disables layer squashing. |
| 94 const char kDisableLayerSquashing[] = | 85 const char kDisableLayerSquashing[] = |
| 95 "disable-layer-squashing"; | 86 "disable-layer-squashing"; |
| 96 | 87 |
| 97 // Disables hardware acceleration of video decode, where available. | 88 // Disables hardware acceleration of video decode, where available. |
| 98 const char kDisableAcceleratedVideoDecode[] = | 89 const char kDisableAcceleratedVideoDecode[] = |
| 99 "disable-accelerated-video-decode"; | 90 "disable-accelerated-video-decode"; |
| 100 | 91 |
| 101 // Disable the ApplicationCache. | 92 // Disable the ApplicationCache. |
| 102 const char kDisableApplicationCache[] = "disable-application-cache"; | 93 const char kDisableApplicationCache[] = "disable-application-cache"; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 | 267 |
| 277 // Enable bleeding-edge code to make Chrome draw content faster. The changes | 268 // Enable bleeding-edge code to make Chrome draw content faster. The changes |
| 278 // behind this path are very likely to break lots of content. | 269 // behind this path are very likely to break lots of content. |
| 279 // ** DO NOT use this flag unless you know what you are doing. ** | 270 // ** DO NOT use this flag unless you know what you are doing. ** |
| 280 const char kEnableBleedingEdgeRenderingFastPaths[] = | 271 const char kEnableBleedingEdgeRenderingFastPaths[] = |
| 281 "enable-bleeding-edge-rendering-fast-paths"; | 272 "enable-bleeding-edge-rendering-fast-paths"; |
| 282 | 273 |
| 283 // Disable deferred image filters. | 274 // Disable deferred image filters. |
| 284 const char kDisableDeferredFilters[] = "disable-deferred-filters"; | 275 const char kDisableDeferredFilters[] = "disable-deferred-filters"; |
| 285 | 276 |
| 286 // Enables accelerated compositing for backgrounds of root layers with | |
| 287 // background-attachment: fixed. | |
| 288 const char kEnableAcceleratedFixedRootBackground[] = | |
| 289 "enable-accelerated-fixed-root-background"; | |
| 290 | |
| 291 // Enables accelerated compositing for overflow scroll. Promotes eligible | |
| 292 // overflow:scroll elements to layers to enable accelerated scrolling for them. | |
| 293 const char kEnableAcceleratedOverflowScroll[] = | |
| 294 "enable-accelerated-overflow-scroll"; | |
| 295 | |
| 296 // Enables LCD text. | 277 // Enables LCD text. |
| 297 const char kEnableLCDText[] = "enable-lcd-text"; | 278 const char kEnableLCDText[] = "enable-lcd-text"; |
| 298 | 279 |
| 299 // Enables using signed distance fields when rendering text. | 280 // Enables using signed distance fields when rendering text. |
| 300 // Only valid if GPU rasterization is enabled as well. | 281 // Only valid if GPU rasterization is enabled as well. |
| 301 const char kEnableDistanceFieldText[] = "enable-distance-field-text"; | 282 const char kEnableDistanceFieldText[] = "enable-distance-field-text"; |
| 302 | 283 |
| 303 // Enables experimental feature that maps multiple RenderLayers to | 284 // Enables experimental feature that maps multiple RenderLayers to |
| 304 // one composited layer to avoid pathological layer counts. | 285 // one composited layer to avoid pathological layer counts. |
| 305 const char kEnableLayerSquashing[] = | 286 const char kEnableLayerSquashing[] = |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 // Enable the Win32K process mitigation policy for renderer processes which | 908 // Enable the Win32K process mitigation policy for renderer processes which |
| 928 // prevents them from invoking user32 and gdi32 system calls which enter | 909 // prevents them from invoking user32 and gdi32 system calls which enter |
| 929 // the kernel. This is only supported on Windows 8 and beyond. | 910 // the kernel. This is only supported on Windows 8 and beyond. |
| 930 const char kEnableWin32kRendererLockDown[] | 911 const char kEnableWin32kRendererLockDown[] |
| 931 = "enable_win32k_renderer_lockdown"; | 912 = "enable_win32k_renderer_lockdown"; |
| 932 #endif | 913 #endif |
| 933 | 914 |
| 934 // Don't dump stuff here, follow the same order as the header. | 915 // Don't dump stuff here, follow the same order as the header. |
| 935 | 916 |
| 936 } // namespace switches | 917 } // namespace switches |
| OLD | NEW |