| 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 namespace switches { | 7 namespace switches { |
| 8 | 8 |
| 9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to | 9 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to |
| 10 // have an effect. 0 disables MSAA. | 10 // have an effect. 0 disables MSAA. |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 const char kDisableDelayAgnosticAec[] = "disable-delay-agnostic-aec"; | 94 const char kDisableDelayAgnosticAec[] = "disable-delay-agnostic-aec"; |
| 95 | 95 |
| 96 // Disables delegated renderer. | 96 // Disables delegated renderer. |
| 97 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; | 97 const char kDisableDelegatedRenderer[] = "disable-delegated-renderer"; |
| 98 | 98 |
| 99 // Handles URL requests by NPAPI plugins through the renderer. | 99 // Handles URL requests by NPAPI plugins through the renderer. |
| 100 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests"; | 100 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests"; |
| 101 | 101 |
| 102 // Disable the per-domain blocking for 3D APIs after GPU reset. | 102 // Disable the per-domain blocking for 3D APIs after GPU reset. |
| 103 // This switch is intended only for tests. | 103 // This switch is intended only for tests. |
| 104 extern const char kDisableDomainBlockingFor3DAPIs[] = | 104 const char kDisableDomainBlockingFor3DAPIs[] = |
| 105 "disable-domain-blocking-for-3d-apis"; | 105 "disable-domain-blocking-for-3d-apis"; |
| 106 | 106 |
| 107 // Disable experimental WebGL support. | 107 // Disable experimental WebGL support. |
| 108 const char kDisableExperimentalWebGL[] = "disable-webgl"; | 108 const char kDisableExperimentalWebGL[] = "disable-webgl"; |
| 109 | 109 |
| 110 // Disable FileSystem API. | 110 // Disable FileSystem API. |
| 111 const char kDisableFileSystem[] = "disable-file-system"; | 111 const char kDisableFileSystem[] = "disable-file-system"; |
| 112 | 112 |
| 113 // Disable 3D inside of flapper. | 113 // Disable 3D inside of flapper. |
| 114 const char kDisableFlash3d[] = "disable-flash-3d"; | 114 const char kDisableFlash3d[] = "disable-flash-3d"; |
| 115 | 115 |
| 116 // Disable Stage3D inside of flapper. | 116 // Disable Stage3D inside of flapper. |
| 117 const char kDisableFlashStage3d[] = "disable-flash-stage3d"; | 117 const char kDisableFlashStage3d[] = "disable-flash-stage3d"; |
| 118 | 118 |
| 119 // Disables GPU hardware acceleration. If software renderer is not in place, | 119 // Disables GPU hardware acceleration. If software renderer is not in place, |
| 120 // then the GPU process won't launch. | 120 // then the GPU process won't launch. |
| 121 const char kDisableGpu[] = "disable-gpu"; | 121 const char kDisableGpu[] = "disable-gpu"; |
| 122 | 122 |
| 123 // Prevent the compositor from using its GPU implementation. | 123 // Prevent the compositor from using its GPU implementation. |
| 124 const char kDisableGpuCompositing[] = "disable-gpu-compositing"; | 124 const char kDisableGpuCompositing[] = "disable-gpu-compositing"; |
| 125 | 125 |
| 126 // Disable proactive early init of GPU process. | 126 // Disable proactive early init of GPU process. |
| 127 const char kDisableGpuEarlyInit[] = "disable-gpu-early-init"; | 127 const char kDisableGpuEarlyInit[] = "disable-gpu-early-init"; |
| 128 | 128 |
| 129 // Disable the limit on the number of times the GPU process may be restarted | 129 // Disable the limit on the number of times the GPU process may be restarted |
| 130 // This switch is intended only for tests. | 130 // This switch is intended only for tests. |
| 131 extern const char kDisableGpuProcessCrashLimit[] = | 131 const char kDisableGpuProcessCrashLimit[] = "disable-gpu-process-crash-limit"; |
| 132 "disable-gpu-process-crash-limit"; | |
| 133 | 132 |
| 134 // Disable GPU rasterization, i.e. rasterize on the CPU only. | 133 // Disable GPU rasterization, i.e. rasterize on the CPU only. |
| 135 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags. | 134 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags. |
| 136 const char kDisableGpuRasterization[] = "disable-gpu-rasterization"; | 135 const char kDisableGpuRasterization[] = "disable-gpu-rasterization"; |
| 137 | 136 |
| 138 // When using CPU rasterizing disable low resolution tiling. This uses | 137 // When using CPU rasterizing disable low resolution tiling. This uses |
| 139 // less power, particularly during animations, but more white may be seen | 138 // less power, particularly during animations, but more white may be seen |
| 140 // during fast scrolling especially on slower devices. | 139 // during fast scrolling especially on slower devices. |
| 141 const char kDisableLowResTiling[] = "disable-low-res-tiling"; | 140 const char kDisableLowResTiling[] = "disable-low-res-tiling"; |
| 142 | 141 |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 | 788 |
| 790 // Type of the current test harness ("browser" or "ui"). | 789 // Type of the current test harness ("browser" or "ui"). |
| 791 const char kTestType[] = "test-type"; | 790 const char kTestType[] = "test-type"; |
| 792 | 791 |
| 793 // Controls how text selection granularity changes when touch text selection | 792 // Controls how text selection granularity changes when touch text selection |
| 794 // handles are dragged. Should be "character" or "direction". If not specified, | 793 // handles are dragged. Should be "character" or "direction". If not specified, |
| 795 // the platform default is used. | 794 // the platform default is used. |
| 796 const char kTouchTextSelectionStrategy[] = "touch-selection-strategy"; | 795 const char kTouchTextSelectionStrategy[] = "touch-selection-strategy"; |
| 797 | 796 |
| 798 // Prioritizes the UI's command stream in the GPU process | 797 // Prioritizes the UI's command stream in the GPU process |
| 799 extern const char kUIPrioritizeInGpuProcess[] = | 798 const char kUIPrioritizeInGpuProcess[] = "ui-prioritize-in-gpu-process"; |
| 800 "ui-prioritize-in-gpu-process"; | |
| 801 | 799 |
| 802 // Bypass the media stream infobar by selecting the default device for media | 800 // Bypass the media stream infobar by selecting the default device for media |
| 803 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream. | 801 // streams (e.g. WebRTC). Works with --use-fake-device-for-media-stream. |
| 804 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream"; | 802 const char kUseFakeUIForMediaStream[] = "use-fake-ui-for-media-stream"; |
| 805 | 803 |
| 806 // Enable native GPU memory buffer support when available. | 804 // Enable native GPU memory buffer support when available. |
| 807 const char kEnableNativeGpuMemoryBuffers[] = "enable-native-gpu-memory-buffers"; | 805 const char kEnableNativeGpuMemoryBuffers[] = "enable-native-gpu-memory-buffers"; |
| 808 | 806 |
| 809 // Texture target for CHROMIUM_image backed content textures. | 807 // Texture target for CHROMIUM_image backed content textures. |
| 810 const char kContentImageTextureTarget[] = "content-image-texture-target"; | 808 const char kContentImageTextureTarget[] = "content-image-texture-target"; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; | 972 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; |
| 975 | 973 |
| 976 // Enables the exporting of the tracing events to ETW. This is only supported on | 974 // Enables the exporting of the tracing events to ETW. This is only supported on |
| 977 // Windows Vista and later. | 975 // Windows Vista and later. |
| 978 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; | 976 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; |
| 979 #endif | 977 #endif |
| 980 | 978 |
| 981 // Don't dump stuff here, follow the same order as the header. | 979 // Don't dump stuff here, follow the same order as the header. |
| 982 | 980 |
| 983 } // namespace switches | 981 } // namespace switches |
| OLD | NEW |