| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; | 402 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; |
| 403 | 403 |
| 404 // When using CPU rasterizing generate low resolution tiling. Low res | 404 // When using CPU rasterizing generate low resolution tiling. Low res |
| 405 // tiles may be displayed during fast scrolls especially on slower devices. | 405 // tiles may be displayed during fast scrolls especially on slower devices. |
| 406 const char kEnableLowResTiling[] = "enable-low-res-tiling"; | 406 const char kEnableLowResTiling[] = "enable-low-res-tiling"; |
| 407 | 407 |
| 408 // See comment for kEnableCompositingForFixedPosition. | 408 // See comment for kEnableCompositingForFixedPosition. |
| 409 const char kEnableHighDpiCompositingForFixedPosition[] = | 409 const char kEnableHighDpiCompositingForFixedPosition[] = |
| 410 "enable-high-dpi-fixed-position-compositing"; | 410 "enable-high-dpi-fixed-position-compositing"; |
| 411 | 411 |
| 412 #if defined(OS_WIN) | |
| 413 // Disable the Legacy Window which corresponds to the size of the WebContents. | |
| 414 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; | |
| 415 | |
| 416 // Enables the DirectWrite font rendering system on windows. | |
| 417 const char kEnableDirectWrite[] = "enable-direct-write"; | |
| 418 | |
| 419 // Use high resolution timers for TimeTicks. | |
| 420 const char kEnableHighResolutionTime[] = "enable-high-resolution-time"; | |
| 421 | |
| 422 // Enable the Win32K process mitigation policy for renderer processes which | |
| 423 // prevents them from invoking user32 and gdi32 system calls which enter | |
| 424 // the kernel. This is only supported on Windows 8 and beyond. | |
| 425 const char kEnableWin32kRendererLockDown[] | |
| 426 = "enable_win32k_renderer_lockdown"; | |
| 427 #endif | |
| 428 | |
| 429 // Paint content on the compositor thread instead of the main thread. | 412 // Paint content on the compositor thread instead of the main thread. |
| 430 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; | 413 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
| 431 | 414 |
| 432 // Enables support for inband text tracks in media content. | 415 // Enables support for inband text tracks in media content. |
| 433 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; | 416 const char kEnableInbandTextTracks[] = "enable-inband-text-tracks"; |
| 434 | 417 |
| 435 // Force logging to be enabled. Logging is disabled by default in release | 418 // Force logging to be enabled. Logging is disabled by default in release |
| 436 // builds. | 419 // builds. |
| 437 const char kEnableLogging[] = "enable-logging"; | 420 const char kEnableLogging[] = "enable-logging"; |
| 438 | 421 |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 | 958 |
| 976 #if defined(OS_MACOSX) && !defined(OS_IOS) | 959 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 977 const char kEnableCarbonInterposing[] = "enable-carbon-interposing"; | 960 const char kEnableCarbonInterposing[] = "enable-carbon-interposing"; |
| 978 | 961 |
| 979 // Disables support for Core Animation plugins. This is triggered when | 962 // Disables support for Core Animation plugins. This is triggered when |
| 980 // accelerated compositing is disabled. See http://crbug.com/122430 . | 963 // accelerated compositing is disabled. See http://crbug.com/122430 . |
| 981 const char kDisableCoreAnimationPlugins[] = | 964 const char kDisableCoreAnimationPlugins[] = |
| 982 "disable-core-animation-plugins"; | 965 "disable-core-animation-plugins"; |
| 983 #endif | 966 #endif |
| 984 | 967 |
| 968 #if defined(OS_WIN) |
| 969 // Device scale factor passed to certain processes like renderers, etc. |
| 970 const char kDeviceScaleFactor[] = "device-scale-factor"; |
| 971 |
| 972 // Disable the Legacy Window which corresponds to the size of the WebContents. |
| 973 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; |
| 974 |
| 975 // Enables the DirectWrite font rendering system on windows. |
| 976 const char kEnableDirectWrite[] = "enable-direct-write"; |
| 977 |
| 978 // Use high resolution timers for TimeTicks. |
| 979 const char kEnableHighResolutionTime[] = "enable-high-resolution-time"; |
| 980 |
| 981 // Enable the Win32K process mitigation policy for renderer processes which |
| 982 // prevents them from invoking user32 and gdi32 system calls which enter |
| 983 // the kernel. This is only supported on Windows 8 and beyond. |
| 984 const char kEnableWin32kRendererLockDown[] |
| 985 = "enable_win32k_renderer_lockdown"; |
| 986 #endif |
| 987 |
| 985 // Don't dump stuff here, follow the same order as the header. | 988 // Don't dump stuff here, follow the same order as the header. |
| 986 | 989 |
| 987 } // namespace switches | 990 } // namespace switches |
| OLD | NEW |