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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 // Renders a border around compositor layers to help debug and study | 96 // Renders a border around compositor layers to help debug and study |
97 // layer compositing. | 97 // layer compositing. |
98 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; | 98 const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; |
99 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; | 99 const char kUIShowCompositedLayerBorders[] = "ui-show-layer-borders"; |
100 | 100 |
101 // Draws a FPS indicator | 101 // Draws a FPS indicator |
102 const char kShowFPSCounter[] = "show-fps-counter"; | 102 const char kShowFPSCounter[] = "show-fps-counter"; |
103 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; | 103 const char kUIShowFPSCounter[] = "ui-show-fps-counter"; |
104 | 104 |
| 105 // Renders a border that represents the bounding box for the layer's animation. |
| 106 const char kShowLayerAnimationBounds[] = "show-layer-animation-bounds"; |
| 107 |
105 // Show rects in the HUD around layers whose properties have changed. | 108 // Show rects in the HUD around layers whose properties have changed. |
106 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; | 109 const char kShowPropertyChangedRects[] = "show-property-changed-rects"; |
107 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects"; | 110 const char kUIShowPropertyChangedRects[] = "ui-show-property-changed-rects"; |
108 | 111 |
109 // Show rects in the HUD around damage as it is recorded into each render | 112 // Show rects in the HUD around damage as it is recorded into each render |
110 // surface. | 113 // surface. |
111 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects"; | 114 const char kShowSurfaceDamageRects[] = "show-surface-damage-rects"; |
112 const char kUIShowSurfaceDamageRects[] = "ui-show-surface-damage-rects"; | 115 const char kUIShowSurfaceDamageRects[] = "ui-show-surface-damage-rects"; |
113 | 116 |
114 // Show rects in the HUD around the screen-space transformed bounds of every | 117 // Show rects in the HUD around the screen-space transformed bounds of every |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) | 208 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) |
206 return false; | 209 return false; |
207 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) | 210 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) |
208 return true; | 211 return true; |
209 | 212 |
210 return false; | 213 return false; |
211 } | 214 } |
212 | 215 |
213 } // namespace switches | 216 } // namespace switches |
214 } // namespace cc | 217 } // namespace cc |
OLD | NEW |