| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // support for controlling access to these APIs. | 79 // support for controlling access to these APIs. |
| 80 const char kDisable3DAPIs[] = "disable-3d-apis"; | 80 const char kDisable3DAPIs[] = "disable-3d-apis"; |
| 81 | 81 |
| 82 // Disable gpu-accelerated 2d canvas. | 82 // Disable gpu-accelerated 2d canvas. |
| 83 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; | 83 const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; |
| 84 | 84 |
| 85 // Disables hardware acceleration of video decode, where available. | 85 // Disables hardware acceleration of video decode, where available. |
| 86 const char kDisableAcceleratedVideoDecode[] = | 86 const char kDisableAcceleratedVideoDecode[] = |
| 87 "disable-accelerated-video-decode"; | 87 "disable-accelerated-video-decode"; |
| 88 | 88 |
| 89 // Disable the ApplicationCache. | |
| 90 const char kDisableApplicationCache[] = "disable-application-cache"; | |
| 91 | |
| 92 // Disable limits on the number of backing stores. Can prevent blinking for | 89 // Disable limits on the number of backing stores. Can prevent blinking for |
| 93 // users with many windows/tabs and lots of memory. | 90 // users with many windows/tabs and lots of memory. |
| 94 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 91 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
| 95 | 92 |
| 96 // Disable the Blink Scheduler. Ensures there's no reordering of blink tasks. | 93 // Disable the Blink Scheduler. Ensures there's no reordering of blink tasks. |
| 97 // This switch is intended only for performance tests. | 94 // This switch is intended only for performance tests. |
| 98 const char kDisableBlinkScheduler[] = "disable-blink-scheduler"; | 95 const char kDisableBlinkScheduler[] = "disable-blink-scheduler"; |
| 99 | 96 |
| 100 // Disable the creation of compositing layers when it would prevent LCD text. | 97 // Disable the creation of compositing layers when it would prevent LCD text. |
| 101 const char kDisablePreferCompositingToLCDText[] = | 98 const char kDisablePreferCompositingToLCDText[] = |
| (...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) | 982 if (cmd_line->HasSwitch(kDisableWin32kRendererLockDown)) |
| 986 return false; | 983 return false; |
| 987 // Default. | 984 // Default. |
| 988 return group_name == "Enabled"; | 985 return group_name == "Enabled"; |
| 989 } | 986 } |
| 990 #endif | 987 #endif |
| 991 | 988 |
| 992 // Don't dump stuff here, follow the same order as the header. | 989 // Don't dump stuff here, follow the same order as the header. |
| 993 | 990 |
| 994 } // namespace switches | 991 } // namespace switches |
| OLD | NEW |