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 "cc/base/switches.h" | 5 #include "cc/base/switches.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 namespace switches { | 10 namespace switches { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 // Causes the compositor to render to textures which are then sent to the parent | 75 // Causes the compositor to render to textures which are then sent to the parent |
76 // through the texture mailbox mechanism. | 76 // through the texture mailbox mechanism. |
77 // Requires --enable-compositor-frame-message. | 77 // Requires --enable-compositor-frame-message. |
78 const char kCompositeToMailbox[] = "composite-to-mailbox"; | 78 const char kCompositeToMailbox[] = "composite-to-mailbox"; |
79 | 79 |
80 // Check that property changes during paint do not occur. | 80 // Check that property changes during paint do not occur. |
81 const char kStrictLayerPropertyChangeChecking[] = | 81 const char kStrictLayerPropertyChangeChecking[] = |
82 "strict-layer-property-change-checking"; | 82 "strict-layer-property-change-checking"; |
83 | 83 |
| 84 // Virtual viewport for fixed-position elements, scrollbars during pinch. |
| 85 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; |
| 86 |
84 const char kEnablePartialSwap[] = "enable-partial-swap"; | 87 const char kEnablePartialSwap[] = "enable-partial-swap"; |
85 // Disable partial swap which is needed for some OpenGL drivers / emulators. | 88 // Disable partial swap which is needed for some OpenGL drivers / emulators. |
86 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; | 89 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; |
87 | 90 |
88 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | 91 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; |
89 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; | 92 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; |
90 | 93 |
91 // Renders a border around compositor layers to help debug and study | 94 // Renders a border around compositor layers to help debug and study |
92 // layer compositing. | 95 // layer compositing. |
93 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 96 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 return false; | 160 return false; |
158 #elif defined(OS_ANDROID) | 161 #elif defined(OS_ANDROID) |
159 return true; | 162 return true; |
160 #else | 163 #else |
161 return false; | 164 return false; |
162 #endif | 165 #endif |
163 } | 166 } |
164 | 167 |
165 } // namespace switches | 168 } // namespace switches |
166 } // namespace cc | 169 } // namespace cc |
OLD | NEW |