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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 const char kDisableGpuMemoryBufferVideoFrames[] = | 163 const char kDisableGpuMemoryBufferVideoFrames[] = |
164 "disable-gpu-memory-buffer-video-frames"; | 164 "disable-gpu-memory-buffer-video-frames"; |
165 | 165 |
166 // Disable the limit on the number of times the GPU process may be restarted. | 166 // Disable the limit on the number of times the GPU process may be restarted. |
167 // For tests and platforms where software fallback is disabled. | 167 // For tests and platforms where software fallback is disabled. |
168 const char kDisableGpuProcessCrashLimit[] = "disable-gpu-process-crash-limit"; | 168 const char kDisableGpuProcessCrashLimit[] = "disable-gpu-process-crash-limit"; |
169 | 169 |
170 // Disable async GL worker context. Overrides kEnableGpuAsyncWorkerContext. | 170 // Disable async GL worker context. Overrides kEnableGpuAsyncWorkerContext. |
171 const char kDisableGpuAsyncWorkerContext[] = "disable-gpu-async-worker-context"; | 171 const char kDisableGpuAsyncWorkerContext[] = "disable-gpu-async-worker-context"; |
172 | 172 |
173 // Disable GPU rasterization, i.e. rasterize on the CPU only. | |
174 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags. | |
175 const char kDisableGpuRasterization[] = "disable-gpu-rasterization"; | |
176 | |
177 // When using CPU rasterizing disable low resolution tiling. This uses | 173 // When using CPU rasterizing disable low resolution tiling. This uses |
178 // less power, particularly during animations, but more white may be seen | 174 // less power, particularly during animations, but more white may be seen |
179 // during fast scrolling especially on slower devices. | 175 // during fast scrolling especially on slower devices. |
180 const char kDisableLowResTiling[] = "disable-low-res-tiling"; | 176 const char kDisableLowResTiling[] = "disable-low-res-tiling"; |
181 | 177 |
182 // Disable the GPU process sandbox. | 178 // Disable the GPU process sandbox. |
183 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; | 179 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; |
184 | 180 |
185 // Disable in-process stack traces. | 181 // Disable in-process stack traces. |
186 const char kDisableInProcessStackTraces[] = "disable-in-process-stack-traces"; | 182 const char kDisableInProcessStackTraces[] = "disable-in-process-stack-traces"; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 const char kEnableGpuAsyncWorkerContext[] = "enable-gpu-async-worker-context"; | 402 const char kEnableGpuAsyncWorkerContext[] = "enable-gpu-async-worker-context"; |
407 | 403 |
408 // Specify that all compositor resources should be backed by GPU memory buffers. | 404 // Specify that all compositor resources should be backed by GPU memory buffers. |
409 const char kEnableGpuMemoryBufferCompositorResources[] = | 405 const char kEnableGpuMemoryBufferCompositorResources[] = |
410 "enable-gpu-memory-buffer-compositor-resources"; | 406 "enable-gpu-memory-buffer-compositor-resources"; |
411 | 407 |
412 // Enable GpuMemoryBuffer backed VideoFrames. | 408 // Enable GpuMemoryBuffer backed VideoFrames. |
413 const char kEnableGpuMemoryBufferVideoFrames[] = | 409 const char kEnableGpuMemoryBufferVideoFrames[] = |
414 "enable-gpu-memory-buffer-video-frames"; | 410 "enable-gpu-memory-buffer-video-frames"; |
415 | 411 |
416 // Allow heuristics to determine when a layer tile should be drawn with the | |
417 // Skia GPU backend. Only valid with GPU accelerated compositing + | |
418 // impl-side painting. | |
419 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; | |
420 | |
421 // When using CPU rasterizing generate low resolution tiling. Low res | 412 // When using CPU rasterizing generate low resolution tiling. Low res |
422 // tiles may be displayed during fast scrolls especially on slower devices. | 413 // tiles may be displayed during fast scrolls especially on slower devices. |
423 const char kEnableLowResTiling[] = "enable-low-res-tiling"; | 414 const char kEnableLowResTiling[] = "enable-low-res-tiling"; |
424 | 415 |
425 // Force logging to be enabled. Logging is disabled by default in release | 416 // Force logging to be enabled. Logging is disabled by default in release |
426 // builds. | 417 // builds. |
427 const char kEnableLogging[] = "enable-logging"; | 418 const char kEnableLogging[] = "enable-logging"; |
428 | 419 |
429 // Enables the network information API. | 420 // Enables the network information API. |
430 const char kEnableNetworkInformation[] = "enable-network-information"; | 421 const char kEnableNetworkInformation[] = "enable-network-information"; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; | 590 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; |
600 | 591 |
601 // Don't allow content to arbitrarily append to the back/forward list. | 592 // Don't allow content to arbitrarily append to the back/forward list. |
602 // The page must prcoess a user gesture before an entry can be added. | 593 // The page must prcoess a user gesture before an entry can be added. |
603 const char kHistoryEntryRequiresUserGesture[] = | 594 const char kHistoryEntryRequiresUserGesture[] = |
604 "history-entry-requires-user-gesture"; | 595 "history-entry-requires-user-gesture"; |
605 | 596 |
606 // These mappings only apply to the host resolver. | 597 // These mappings only apply to the host resolver. |
607 const char kHostResolverRules[] = "host-resolver-rules"; | 598 const char kHostResolverRules[] = "host-resolver-rules"; |
608 | 599 |
609 // Ignores GPU blacklist. | |
610 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist"; | |
611 | |
612 // Makes all APIs reflect the layout viewport. | 600 // Makes all APIs reflect the layout viewport. |
613 const char kInertVisualViewport[] = "inert-visual-viewport"; | 601 const char kInertVisualViewport[] = "inert-visual-viewport"; |
614 | 602 |
615 // Run the GPU process as a thread in the browser process. | 603 // Run the GPU process as a thread in the browser process. |
616 const char kInProcessGPU[] = "in-process-gpu"; | 604 const char kInProcessGPU[] = "in-process-gpu"; |
617 | 605 |
618 // Overrides the timeout, in seconds, that a child process waits for a | 606 // Overrides the timeout, in seconds, that a child process waits for a |
619 // connection from the browser before killing itself. | 607 // connection from the browser before killing itself. |
620 const char kIPCConnectionTimeout[] = "ipc-connection-timeout"; | 608 const char kIPCConnectionTimeout[] = "ipc-connection-timeout"; |
621 | 609 |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 // the given directory. Used primarily to gather samples for IPC fuzzing. | 1084 // the given directory. Used primarily to gather samples for IPC fuzzing. |
1097 const char kIpcDumpDirectory[] = "ipc-dump-directory"; | 1085 const char kIpcDumpDirectory[] = "ipc-dump-directory"; |
1098 | 1086 |
1099 // Specifies the testcase used by the IPC fuzzer. | 1087 // Specifies the testcase used by the IPC fuzzer. |
1100 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; | 1088 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; |
1101 #endif | 1089 #endif |
1102 | 1090 |
1103 // Don't dump stuff here, follow the same order as the header. | 1091 // Don't dump stuff here, follow the same order as the header. |
1104 | 1092 |
1105 } // namespace switches | 1093 } // namespace switches |
OLD | NEW |