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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const char kDisableAcceleratedVideoDecode[] = | 98 const char kDisableAcceleratedVideoDecode[] = |
99 "disable-accelerated-video-decode"; | 99 "disable-accelerated-video-decode"; |
100 | 100 |
101 // Disable the ApplicationCache. | 101 // Disable the ApplicationCache. |
102 const char kDisableApplicationCache[] = "disable-application-cache"; | 102 const char kDisableApplicationCache[] = "disable-application-cache"; |
103 | 103 |
104 // Disable limits on the number of backing stores. Can prevent blinking for | 104 // Disable limits on the number of backing stores. Can prevent blinking for |
105 // users with many windows/tabs and lots of memory. | 105 // users with many windows/tabs and lots of memory. |
106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 106 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
107 | 107 |
| 108 // See comment for kDisableCompositedSelectionUpdates. |
| 109 const char kDisableCompositedSelectionUpdates[] = |
| 110 "disable-composited-selection-updates"; |
| 111 |
108 // See comment for kEnableCompositingForFixedPosition. | 112 // See comment for kEnableCompositingForFixedPosition. |
109 const char kDisableCompositingForFixedPosition[] = | 113 const char kDisableCompositingForFixedPosition[] = |
110 "disable-fixed-position-compositing"; | 114 "disable-fixed-position-compositing"; |
111 | 115 |
112 // See comment for kEnableCompositingForTransition. | 116 // See comment for kEnableCompositingForTransition. |
113 const char kDisableCompositingForTransition[] = | 117 const char kDisableCompositingForTransition[] = |
114 "disable-transition-compositing"; | 118 "disable-transition-compositing"; |
115 | 119 |
116 // Disables HTML5 DB support. | 120 // Disables HTML5 DB support. |
117 const char kDisableDatabases[] = "disable-databases"; | 121 const char kDisableDatabases[] = "disable-databases"; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 // one composited layer to avoid pathological layer counts. | 337 // one composited layer to avoid pathological layer counts. |
334 const char kEnableLayerSquashing[] = | 338 const char kEnableLayerSquashing[] = |
335 "enable-layer-squashing"; | 339 "enable-layer-squashing"; |
336 | 340 |
337 // Enable experimental container node culling. | 341 // Enable experimental container node culling. |
338 const char kEnableContainerCulling[] = "enable-container-culling"; | 342 const char kEnableContainerCulling[] = "enable-container-culling"; |
339 | 343 |
340 // Use a BeginFrame signal from browser to renderer to schedule rendering. | 344 // Use a BeginFrame signal from browser to renderer to schedule rendering. |
341 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; | 345 const char kEnableBeginFrameScheduling[] = "enable-begin-frame-scheduling"; |
342 | 346 |
| 347 // Enable/Disable use of the compositor to transform and communicate selection |
| 348 // bound updates to the browser. |
| 349 const char kEnableCompositedSelectionUpdates[] = |
| 350 "enable-composited-selection-updates"; |
| 351 |
343 // Enable the creation of compositing layers for fixed position | 352 // Enable the creation of compositing layers for fixed position |
344 // elements. Three options are needed to support four possible scenarios: | 353 // elements. Three options are needed to support four possible scenarios: |
345 // 1. Default (disabled) | 354 // 1. Default (disabled) |
346 // 2. Enabled always (to allow dogfooding) | 355 // 2. Enabled always (to allow dogfooding) |
347 // 3. Disabled always (to give safety fallback for users) | 356 // 3. Disabled always (to give safety fallback for users) |
348 // 4. Enabled only if we detect a highDPI display | 357 // 4. Enabled only if we detect a highDPI display |
349 // | 358 // |
350 // Option #4 may soon be the default, because the feature is needed soon for | 359 // Option #4 may soon be the default, because the feature is needed soon for |
351 // high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will | 360 // high DPI, but cannot be used (yet) for low DPI. Options #2 and #3 will |
352 // override Option #4. | 361 // override Option #4. |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 | 987 |
979 // Disables support for Core Animation plugins. This is triggered when | 988 // Disables support for Core Animation plugins. This is triggered when |
980 // accelerated compositing is disabled. See http://crbug.com/122430 . | 989 // accelerated compositing is disabled. See http://crbug.com/122430 . |
981 const char kDisableCoreAnimationPlugins[] = | 990 const char kDisableCoreAnimationPlugins[] = |
982 "disable-core-animation-plugins"; | 991 "disable-core-animation-plugins"; |
983 #endif | 992 #endif |
984 | 993 |
985 // Don't dump stuff here, follow the same order as the header. | 994 // Don't dump stuff here, follow the same order as the header. |
986 | 995 |
987 } // namespace switches | 996 } // namespace switches |
OLD | NEW |