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

Side by Side Diff: cc/debug/debug_colors.cc

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 7 years, 7 months 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 | Annotate | Revision Log
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/layers/draw_properties.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/debug/debug_colors.h" 5 #include "cc/debug/debug_colors.h"
6 6
7 #include "cc/trees/layer_tree_impl.h" 7 #include "cc/trees/layer_tree_impl.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 129 }
130 130
131 // Picture tile borders are dark grey. 131 // Picture tile borders are dark grey.
132 SkColor DebugColors::PictureTileBorderColor() { 132 SkColor DebugColors::PictureTileBorderColor() {
133 return SkColorSetARGB(64, 64, 64, 0); 133 return SkColorSetARGB(64, 64, 64, 0);
134 } 134 }
135 int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) { 135 int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) {
136 return Scale(1, tree_impl); 136 return Scale(1, tree_impl);
137 } 137 }
138 138
139 // Direct picture borders are chartreuse.
140 SkColor DebugColors::DirectPictureBorderColor() {
141 return SkColorSetARGB(255, 127, 255, 0);
142 }
143 int DebugColors::DirectPictureBorderWidth(const LayerTreeImpl* tree_impl) {
144 return Scale(1, tree_impl);
145 }
146
139 // ======= Checkerboard colors ======= 147 // ======= Checkerboard colors =======
140 148
141 // Non-debug checkerboards are grey. 149 // Non-debug checkerboards are grey.
142 SkColor DebugColors::DefaultCheckerboardColor() { 150 SkColor DebugColors::DefaultCheckerboardColor() {
143 return SkColorSetRGB(241, 241, 241); 151 return SkColorSetRGB(241, 241, 241);
144 } 152 }
145 153
146 // Invalidated tiles get sky blue checkerboards. 154 // Invalidated tiles get sky blue checkerboards.
147 SkColor DebugColors::InvalidatedTileCheckerboardColor() { 155 SkColor DebugColors::InvalidatedTileCheckerboardColor() {
148 return SkColorSetRGB(128, 200, 245); 156 return SkColorSetRGB(128, 200, 245);
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 SkColor DebugColors::MemoryDisplayTextColor() { 271 SkColor DebugColors::MemoryDisplayTextColor() {
264 return SkColorSetARGB(255, 220, 220, 220); 272 return SkColorSetARGB(255, 220, 220, 220);
265 } 273 }
266 274
267 // Paint time display in green (similar to paint times in the WebInspector) 275 // Paint time display in green (similar to paint times in the WebInspector)
268 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { 276 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() {
269 return SkColorSetRGB(75, 155, 55); 277 return SkColorSetRGB(75, 155, 55);
270 } 278 }
271 279
272 } // namespace cc 280 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/layers/draw_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698