| 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #include "content/public/common/content_switches.h" | 6 #include "content/public/common/content_switches.h" |
| 7 #include "media/media_features.h" | 7 #include "media/media_features.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 const char kDisableGpuAsyncWorkerContext[] = "disable-gpu-async-worker-context"; | 171 const char kDisableGpuAsyncWorkerContext[] = "disable-gpu-async-worker-context"; |
| 172 | 172 |
| 173 // When using CPU rasterizing disable low resolution tiling. This uses | 173 // When using CPU rasterizing disable low resolution tiling. This uses |
| 174 // less power, particularly during animations, but more white may be seen | 174 // less power, particularly during animations, but more white may be seen |
| 175 // during fast scrolling especially on slower devices. | 175 // during fast scrolling especially on slower devices. |
| 176 const char kDisableLowResTiling[] = "disable-low-res-tiling"; | 176 const char kDisableLowResTiling[] = "disable-low-res-tiling"; |
| 177 | 177 |
| 178 // Disable the GPU process sandbox. | 178 // Disable the GPU process sandbox. |
| 179 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; | 179 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; |
| 180 | 180 |
| 181 // Disable GPU service scheduler. |
| 182 const char kDisableGpuScheduler[] = "disable-gpu-scheduler"; |
| 183 |
| 181 // Disable in-process stack traces. | 184 // Disable in-process stack traces. |
| 182 const char kDisableInProcessStackTraces[] = "disable-in-process-stack-traces"; | 185 const char kDisableInProcessStackTraces[] = "disable-in-process-stack-traces"; |
| 183 | 186 |
| 184 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 187 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
| 185 // unload handlers on a page to prevent the tab from closing, but the Task | 188 // unload handlers on a page to prevent the tab from closing, but the Task |
| 186 // Manager can be used to terminate the offending process in this case. | 189 // Manager can be used to terminate the offending process in this case. |
| 187 const char kDisableHangMonitor[] = "disable-hang-monitor"; | 190 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
| 188 | 191 |
| 189 // Disable hiding the close buttons of inactive tabs when the tabstrip is in | 192 // Disable hiding the close buttons of inactive tabs when the tabstrip is in |
| 190 // stacked mode. | 193 // stacked mode. |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 // WebFonts intervention v2 flag and values. | 393 // WebFonts intervention v2 flag and values. |
| 391 const char kEnableWebFontsInterventionV2[] = "enable-webfonts-intervention-v2"; | 394 const char kEnableWebFontsInterventionV2[] = "enable-webfonts-intervention-v2"; |
| 392 const char kEnableWebFontsInterventionV2SwitchValueEnabledWith2G[] = | 395 const char kEnableWebFontsInterventionV2SwitchValueEnabledWith2G[] = |
| 393 "enabled-2g"; | 396 "enabled-2g"; |
| 394 const char kEnableWebFontsInterventionV2SwitchValueEnabledWith3G[] = | 397 const char kEnableWebFontsInterventionV2SwitchValueEnabledWith3G[] = |
| 395 "enabled-3g"; | 398 "enabled-3g"; |
| 396 const char kEnableWebFontsInterventionV2SwitchValueEnabledWithSlow2G[] = | 399 const char kEnableWebFontsInterventionV2SwitchValueEnabledWithSlow2G[] = |
| 397 "enabled-slow2g"; | 400 "enabled-slow2g"; |
| 398 const char kEnableWebFontsInterventionV2SwitchValueDisabled[] = "disabled"; | 401 const char kEnableWebFontsInterventionV2SwitchValueDisabled[] = "disabled"; |
| 399 | 402 |
| 403 // Enables GPU channel scheduler. |
| 404 const char kEnableGpuScheduler[] = "enable-gpu-scheduler"; |
| 405 |
| 400 // Makes the GL worker context run asynchronously by using a separate stream. | 406 // Makes the GL worker context run asynchronously by using a separate stream. |
| 401 const char kEnableGpuAsyncWorkerContext[] = "enable-gpu-async-worker-context"; | 407 const char kEnableGpuAsyncWorkerContext[] = "enable-gpu-async-worker-context"; |
| 402 | 408 |
| 403 // Specify that all compositor resources should be backed by GPU memory buffers. | 409 // Specify that all compositor resources should be backed by GPU memory buffers. |
| 404 const char kEnableGpuMemoryBufferCompositorResources[] = | 410 const char kEnableGpuMemoryBufferCompositorResources[] = |
| 405 "enable-gpu-memory-buffer-compositor-resources"; | 411 "enable-gpu-memory-buffer-compositor-resources"; |
| 406 | 412 |
| 407 // Enable GpuMemoryBuffer backed VideoFrames. | 413 // Enable GpuMemoryBuffer backed VideoFrames. |
| 408 const char kEnableGpuMemoryBufferVideoFrames[] = | 414 const char kEnableGpuMemoryBufferVideoFrames[] = |
| 409 "enable-gpu-memory-buffer-video-frames"; | 415 "enable-gpu-memory-buffer-video-frames"; |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 // the given directory. Used primarily to gather samples for IPC fuzzing. | 1091 // the given directory. Used primarily to gather samples for IPC fuzzing. |
| 1086 const char kIpcDumpDirectory[] = "ipc-dump-directory"; | 1092 const char kIpcDumpDirectory[] = "ipc-dump-directory"; |
| 1087 | 1093 |
| 1088 // Specifies the testcase used by the IPC fuzzer. | 1094 // Specifies the testcase used by the IPC fuzzer. |
| 1089 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; | 1095 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; |
| 1090 #endif | 1096 #endif |
| 1091 | 1097 |
| 1092 // Don't dump stuff here, follow the same order as the header. | 1098 // Don't dump stuff here, follow the same order as the header. |
| 1093 | 1099 |
| 1094 } // namespace switches | 1100 } // namespace switches |
| OLD | NEW |