| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Max distance from visible for prepaint tiles. | 73 // Max distance from visible for prepaint tiles. |
| 74 const char kMaxPrepaintTileDistance[] = "max-prepaint-tile-distance"; | 74 const char kMaxPrepaintTileDistance[] = "max-prepaint-tile-distance"; |
| 75 | 75 |
| 76 // Max tiles allowed for each tilings interest area. | 76 // Max tiles allowed for each tilings interest area. |
| 77 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; | 77 const char kMaxTilesForInterestArea[] = "max-tiles-for-interest-area"; |
| 78 | 78 |
| 79 // The amount of unused resource memory compositor is allowed to keep around. | 79 // The amount of unused resource memory compositor is allowed to keep around. |
| 80 const char kMaxUnusedResourceMemoryUsagePercentage[] = | 80 const char kMaxUnusedResourceMemoryUsagePercentage[] = |
| 81 "max-unused-resource-memory-usage-percentage"; | 81 "max-unused-resource-memory-usage-percentage"; |
| 82 | 82 |
| 83 // Causes overlay scrollbars to appear when zoomed in ChromeOS/Windows. |
| 84 const char kEnablePinchZoomScrollbars[] = "enable-pinch-zoom-scrollbars"; |
| 85 const char kDisablePinchZoomScrollbars[] = "disable-pinch-zoom-scrollbars"; |
| 86 |
| 83 // Causes the compositor to render to textures which are then sent to the parent | 87 // Causes the compositor to render to textures which are then sent to the parent |
| 84 // through the texture mailbox mechanism. | 88 // through the texture mailbox mechanism. |
| 85 // Requires --enable-compositor-frame-message. | 89 // Requires --enable-compositor-frame-message. |
| 86 const char kCompositeToMailbox[] = "composite-to-mailbox"; | 90 const char kCompositeToMailbox[] = "composite-to-mailbox"; |
| 87 | 91 |
| 88 const char kEnablePartialSwap[] = "enable-partial-swap"; | 92 const char kEnablePartialSwap[] = "enable-partial-swap"; |
| 89 const char kUIEnablePartialSwap[] = "ui-enable-partial-swap"; | 93 const char kUIEnablePartialSwap[] = "ui-enable-partial-swap"; |
| 90 | 94 |
| 91 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | 95 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; |
| 92 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; | 96 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 149 |
| 146 #if defined(OS_ANDROID) | 150 #if defined(OS_ANDROID) |
| 147 return true; | 151 return true; |
| 148 #else | 152 #else |
| 149 return false; | 153 return false; |
| 150 #endif | 154 #endif |
| 151 } | 155 } |
| 152 | 156 |
| 153 } // namespace switches | 157 } // namespace switches |
| 154 } // namespace cc | 158 } // namespace cc |
| OLD | NEW |