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