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 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 154 |
155 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 155 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
156 // unload handlers on a page to prevent the tab from closing, but the Task | 156 // unload handlers on a page to prevent the tab from closing, but the Task |
157 // Manager can be used to terminate the offending process in this case. | 157 // Manager can be used to terminate the offending process in this case. |
158 const char kDisableHangMonitor[] = "disable-hang-monitor"; | 158 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
159 | 159 |
160 // Disable the RenderThread's HistogramCustomizer. | 160 // Disable the RenderThread's HistogramCustomizer. |
161 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; | 161 const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; |
162 | 162 |
163 // Paint content on the main thread instead of the compositor thread. | 163 // Paint content on the main thread instead of the compositor thread. |
| 164 // Overrides the kEnableImplSidePainting flag. |
164 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; | 165 const char kDisableImplSidePainting[] = "disable-impl-side-painting"; |
165 | 166 |
166 // Prevent Java from running. | 167 // Prevent Java from running. |
167 const char kDisableJava[] = "disable-java"; | 168 const char kDisableJava[] = "disable-java"; |
168 | 169 |
169 // Don't kill a child process when it sends a bad IPC message. Apart | 170 // Don't kill a child process when it sends a bad IPC message. Apart |
170 // from testing, it is a bad idea from a security perspective to enable | 171 // from testing, it is a bad idea from a security perspective to enable |
171 // this switch. | 172 // this switch. |
172 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; | 173 const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; |
173 | 174 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // impl-side painting. | 335 // impl-side painting. |
335 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; | 336 const char kEnableGpuRasterization[] = "enable-gpu-rasterization"; |
336 | 337 |
337 // When using CPU rasterizing generate low resolution tiling. Low res | 338 // When using CPU rasterizing generate low resolution tiling. Low res |
338 // tiles may be displayed during fast scrolls especially on slower devices. | 339 // tiles may be displayed during fast scrolls especially on slower devices. |
339 const char kEnableLowResTiling[] = "enable-low-res-tiling"; | 340 const char kEnableLowResTiling[] = "enable-low-res-tiling"; |
340 | 341 |
341 // Dynamically apply color profiles to web content images. | 342 // Dynamically apply color profiles to web content images. |
342 const char kEnableImageColorProfiles[] = "enable-image-color-profiles"; | 343 const char kEnableImageColorProfiles[] = "enable-image-color-profiles"; |
343 | 344 |
| 345 // Paint content on the compositor thread instead of the main thread. |
| 346 const char kEnableImplSidePainting[] = "enable-impl-side-painting"; |
| 347 |
344 // Force logging to be enabled. Logging is disabled by default in release | 348 // Force logging to be enabled. Logging is disabled by default in release |
345 // builds. | 349 // builds. |
346 const char kEnableLogging[] = "enable-logging"; | 350 const char kEnableLogging[] = "enable-logging"; |
347 | 351 |
348 // Enables the memory benchmarking extension | 352 // Enables the memory benchmarking extension |
349 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; | 353 const char kEnableMemoryBenchmarking[] = "enable-memory-benchmarking"; |
350 | 354 |
351 // Enables the network information API. | 355 // Enables the network information API. |
352 const char kEnableNetworkInformation[] = "enable-network-information"; | 356 const char kEnableNetworkInformation[] = "enable-network-information"; |
353 | 357 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) | 973 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) |
970 return false; | 974 return false; |
971 // Default. | 975 // Default. |
972 return group_name == "Enabled"; | 976 return group_name == "Enabled"; |
973 } | 977 } |
974 #endif | 978 #endif |
975 | 979 |
976 // Don't dump stuff here, follow the same order as the header. | 980 // Don't dump stuff here, follow the same order as the header. |
977 | 981 |
978 } // namespace switches | 982 } // namespace switches |
OLD | NEW |