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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // Requires --enable-compositor-frame-message. | 75 // Requires --enable-compositor-frame-message. |
76 const char kCompositeToMailbox[] = "composite-to-mailbox"; | 76 const char kCompositeToMailbox[] = "composite-to-mailbox"; |
77 | 77 |
78 // Check that property changes during paint do not occur. | 78 // Check that property changes during paint do not occur. |
79 const char kStrictLayerPropertyChangeChecking[] = | 79 const char kStrictLayerPropertyChangeChecking[] = |
80 "strict-layer-property-change-checking"; | 80 "strict-layer-property-change-checking"; |
81 | 81 |
82 // Virtual viewport for fixed-position elements, scrollbars during pinch. | 82 // Virtual viewport for fixed-position elements, scrollbars during pinch. |
83 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; | 83 const char kEnablePinchVirtualViewport[] = "enable-pinch-virtual-viewport"; |
84 | 84 |
| 85 const char kEnablePartialSwap[] = "enable-partial-swap"; |
85 // Disable partial swap which is needed for some OpenGL drivers / emulators. | 86 // Disable partial swap which is needed for some OpenGL drivers / emulators. |
86 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; | 87 const char kUIDisablePartialSwap[] = "ui-disable-partial-swap"; |
87 | 88 |
88 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; | 89 const char kEnablePerTilePainting[] = "enable-per-tile-painting"; |
89 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; | 90 const char kUIEnablePerTilePainting[] = "ui-enable-per-tile-painting"; |
90 | 91 |
91 // Enables the GPU benchmarking extension | 92 // Enables the GPU benchmarking extension |
92 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; | 93 const char kEnableGpuBenchmarking[] = "enable-gpu-benchmarking"; |
93 | 94 |
94 // Renders a border around compositor layers to help debug and study | 95 // Renders a border around compositor layers to help debug and study |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 if (command_line.HasSwitch(switches::kDisableMapImage)) | 201 if (command_line.HasSwitch(switches::kDisableMapImage)) |
201 return false; | 202 return false; |
202 else if (command_line.HasSwitch(switches::kEnableMapImage)) | 203 else if (command_line.HasSwitch(switches::kEnableMapImage)) |
203 return true; | 204 return true; |
204 | 205 |
205 return false; | 206 return false; |
206 } | 207 } |
207 | 208 |
208 } // namespace switches | 209 } // namespace switches |
209 } // namespace cc | 210 } // namespace cc |
OLD | NEW |