| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Causes the compositor to render to textures which are then sent to the parent | 70 // Causes the compositor to render to textures which are then sent to the parent |
| 71 // through the texture mailbox mechanism. | 71 // through the texture mailbox mechanism. |
| 72 // Requires --enable-compositor-frame-message. | 72 // Requires --enable-compositor-frame-message. |
| 73 const char kCompositeToMailbox[] = "composite-to-mailbox"; | 73 const char kCompositeToMailbox[] = "composite-to-mailbox"; |
| 74 | 74 |
| 75 // Check that property changes during paint do not occur. | 75 // Check that property changes during paint do not occur. |
| 76 const char kStrictLayerPropertyChangeChecking[] = | 76 const char kStrictLayerPropertyChangeChecking[] = |
| 77 "strict-layer-property-change-checking"; | 77 "strict-layer-property-change-checking"; |
| 78 | 78 |
| 79 // Virtual viewport for fixed-position elements, scrollbars during pinch. |
| 80 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; |
| 81 |
| 79 const char kEnablePartialSwap[] = "enable-partial-swap"; | 82 const char kEnablePartialSwap[] = "enable-partial-swap"; |
| 80 // Disable partial swap which is needed for some OpenGL drivers / emulators. | 83 // Disable partial swap which is needed for some OpenGL drivers / emulators. |
| 81 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; | 84 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; |
| 82 | 85 |
| 83 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | 86 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; |
| 84 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; | 87 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; |
| 85 | 88 |
| 86 // Renders a border around compositor layers to help debug and study | 89 // Renders a border around compositor layers to help debug and study |
| 87 // layer compositing. | 90 // layer compositing. |
| 88 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 91 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 return false; | 152 return false; |
| 150 #elif defined(OS_ANDROID) | 153 #elif defined(OS_ANDROID) |
| 151 return true; | 154 return true; |
| 152 #else | 155 #else |
| 153 return false; | 156 return false; |
| 154 #endif | 157 #endif |
| 155 } | 158 } |
| 156 | 159 |
| 157 } // namespace switches | 160 } // namespace switches |
| 158 } // namespace cc | 161 } // namespace cc |
| OLD | NEW |