Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(890)

Side by Side Diff: cc/base/switches.cc

Issue 92853002: Support for drawing a debug border around animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy switches for chromeos Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/base/switches.h ('k') | cc/debug/debug_colors.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/base/switches.h ('k') | cc/debug/debug_colors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698