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

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

Issue 1774533002: Set debug color for borders of compressed tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/layers/picture_layer_impl.cc » ('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 "base/macros.h" 5 #include "base/macros.h"
6 6
7 #include "cc/debug/debug_colors.h" 7 #include "cc/debug/debug_colors.h"
8 8
9 #include "cc/trees/layer_tree_impl.h" 9 #include "cc/trees/layer_tree_impl.h"
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 140
141 // Direct picture borders are chartreuse. 141 // Direct picture borders are chartreuse.
142 SkColor DebugColors::DirectPictureBorderColor() { 142 SkColor DebugColors::DirectPictureBorderColor() {
143 return SkColorSetARGB(255, 127, 255, 0); 143 return SkColorSetARGB(255, 127, 255, 0);
144 } 144 }
145 int DebugColors::DirectPictureBorderWidth(const LayerTreeImpl* tree_impl) { 145 int DebugColors::DirectPictureBorderWidth(const LayerTreeImpl* tree_impl) {
146 return Scale(1, tree_impl); 146 return Scale(1, tree_impl);
147 } 147 }
148 148
149 // Compressed tile borders are blue.
150 SkColor DebugColors::CompressedTileBorderColor() {
151 return SkColorSetARGB(100, 20, 20, 240);
152 }
153 int DebugColors::CompressedTileBorderWidth(const LayerTreeImpl* tree_impl) {
154 return Scale(2, tree_impl);
155 }
156
149 // ======= Checkerboard colors ======= 157 // ======= Checkerboard colors =======
150 158
151 // Non-debug checkerboards are grey. 159 // Non-debug checkerboards are grey.
152 SkColor DebugColors::DefaultCheckerboardColor() { 160 SkColor DebugColors::DefaultCheckerboardColor() {
153 return SkColorSetRGB(241, 241, 241); 161 return SkColorSetRGB(241, 241, 241);
154 } 162 }
155 163
156 // Invalidated tiles get sky blue checkerboards. 164 // Invalidated tiles get sky blue checkerboards.
157 SkColor DebugColors::InvalidatedTileCheckerboardColor() { 165 SkColor DebugColors::InvalidatedTileCheckerboardColor() {
158 return SkColorSetRGB(128, 200, 245); 166 return SkColorSetRGB(128, 200, 245);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 SkColor DebugColors::MemoryDisplayTextColor() { 307 SkColor DebugColors::MemoryDisplayTextColor() {
300 return SK_ColorCYAN; 308 return SK_ColorCYAN;
301 } 309 }
302 310
303 // Paint time display in green (similar to paint times in the WebInspector) 311 // Paint time display in green (similar to paint times in the WebInspector)
304 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { 312 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() {
305 return SkColorSetRGB(75, 155, 55); 313 return SkColorSetRGB(75, 155, 55);
306 } 314 }
307 315
308 } // namespace cc 316 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698