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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 "disable-gpu-process-crash-limit"; | 203 "disable-gpu-process-crash-limit"; |
204 | 204 |
205 // Do not launch the GPU process shortly after browser process launch. Instead | 205 // Do not launch the GPU process shortly after browser process launch. Instead |
206 // launch it when it is first needed. | 206 // launch it when it is first needed. |
207 const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch"; | 207 const char kDisableGpuProcessPrelaunch[] = "disable-gpu-process-prelaunch"; |
208 | 208 |
209 // Disable GPU rasterization, i.e. rasterize on the CPU only. | 209 // Disable GPU rasterization, i.e. rasterize on the CPU only. |
210 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags. | 210 // Overrides the kEnableGpuRasterization and kForceGpuRasterization flags. |
211 const char kDisableGpuRasterization[] = "disable-gpu-rasterization"; | 211 const char kDisableGpuRasterization[] = "disable-gpu-rasterization"; |
212 | 212 |
| 213 // When using CPU rasterizing disable low resolution tiling. This uses |
| 214 // less power, particularly during animations, but more white may be seen |
| 215 // during fast scrolling especially on slower devices. |
| 216 const char kDisableLowResTiling[] = "disable-low-res-tiling"; |
| 217 |
213 // Disable the GPU process sandbox. | 218 // Disable the GPU process sandbox. |
214 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; | 219 const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; |
215 | 220 |
216 // Disable the thread that crashes the GPU process if it stops responding to | 221 // Disable the thread that crashes the GPU process if it stops responding to |
217 // messages. | 222 // messages. |
218 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; | 223 const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; |
219 | 224 |
220 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 225 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
221 // unload handlers on a page to prevent the tab from closing, but the Task | 226 // unload handlers on a page to prevent the tab from closing, but the Task |
222 // Manager can be used to terminate the offending process in this case. | 227 // Manager can be used to terminate the offending process in this case. |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight"; | 466 const char kEnableGestureTapHighlight[] = "enable-gesture-tap-highlight"; |
462 | 467 |
463 // Enables TRACE for GL calls in the renderer. | 468 // Enables TRACE for GL calls in the renderer. |
464 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing"; | 469 const char kEnableGpuClientTracing[] = "enable-gpu-client-tracing"; |
465 | 470 |
466 // Allow heuristics to determine when a layer tile should be drawn with the | 471 // Allow heuristics to determine when a layer tile should be drawn with the |
467 // Skia GPU backend. Only valid with GPU accelerated compositing + | 472 // Skia GPU backend. Only valid with GPU accelerated compositing + |
468 // impl-side painting. | 473 // impl-side painting. |
469 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; | 474 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; |
470 | 475 |
| 476 // When using CPU rasterizing generate low resolution tiling. Low res |
| 477 // tiles may be displayed during fast scrolls especially on slower devices. |
| 478 const char kEnableLowResTiling[] = "enable-low-res-tiling"; |
| 479 |
471 // See comment for kEnableCompositingForFixedPosition. | 480 // See comment for kEnableCompositingForFixedPosition. |
472 const char kEnableHighDpiCompositingForFixedPosition[] = | 481 const char kEnableHighDpiCompositingForFixedPosition[] = |
473 "enable-high-dpi-fixed-position-compositing"; | 482 "enable-high-dpi-fixed-position-compositing"; |
474 | 483 |
475 #if defined(OS_WIN) | 484 #if defined(OS_WIN) |
476 // Disable the Legacy Window which corresponds to the size of the WebContents. | 485 // Disable the Legacy Window which corresponds to the size of the WebContents. |
477 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; | 486 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; |
478 | 487 |
479 // Enables the DirectWrite font rendering system on windows. | 488 // Enables the DirectWrite font rendering system on windows. |
480 const char kEnableDirectWrite[] = "enable-direct-write"; | 489 const char kEnableDirectWrite[] = "enable-direct-write"; |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 #endif | 1084 #endif |
1076 | 1085 |
1077 #if defined(OS_POSIX) | 1086 #if defined(OS_POSIX) |
1078 // Causes the child processes to cleanly exit via calling exit(). | 1087 // Causes the child processes to cleanly exit via calling exit(). |
1079 const char kChildCleanExit[] = "child-clean-exit"; | 1088 const char kChildCleanExit[] = "child-clean-exit"; |
1080 #endif | 1089 #endif |
1081 | 1090 |
1082 // 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. |
1083 | 1092 |
1084 } // namespace switches | 1093 } // namespace switches |
OLD | NEW |