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

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

Issue 12642010: Implement on demand quad rasterization for PicturePiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 7 years, 8 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/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 "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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 // Solid color tile borders are grey. 123 // Solid color tile borders are grey.
124 SkColor DebugColors::SolidColorTileBorderColor() { 124 SkColor DebugColors::SolidColorTileBorderColor() {
125 return SkColorSetARGB(128, 128, 128, 128); 125 return SkColorSetARGB(128, 128, 128, 128);
126 } 126 }
127 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) { 127 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) {
128 return Scale(1, tree_impl); 128 return Scale(1, tree_impl);
129 } 129 }
130 130
131 // Picture tile borders are dark grey.
132 SkColor DebugColors::PictureTileBorderColor() { return SkColorSetARGB(64, 64, 64 , 0); }
133 int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) { return Scale(1, tree_impl); }
134
131 // ======= Checkerboard colors ======= 135 // ======= Checkerboard colors =======
132 136
133 // Non-debug checkerboards are grey. 137 // Non-debug checkerboards are grey.
134 SkColor DebugColors::DefaultCheckerboardColor() { 138 SkColor DebugColors::DefaultCheckerboardColor() {
135 return SkColorSetRGB(241, 241, 241); 139 return SkColorSetRGB(241, 241, 241);
136 } 140 }
137 141
138 // Invalidated tiles get sky blue checkerboards. 142 // Invalidated tiles get sky blue checkerboards.
139 SkColor DebugColors::InvalidatedTileCheckerboardColor() { 143 SkColor DebugColors::InvalidatedTileCheckerboardColor() {
140 return SkColorSetRGB(128, 200, 245); 144 return SkColorSetRGB(128, 200, 245);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 SkColor DebugColors::MemoryDisplayTextColor() { 254 SkColor DebugColors::MemoryDisplayTextColor() {
251 return SkColorSetARGB(255, 220, 220, 220); 255 return SkColorSetARGB(255, 220, 220, 220);
252 } 256 }
253 257
254 // Paint time display in green (similar to paint times in the WebInspector) 258 // Paint time display in green (similar to paint times in the WebInspector)
255 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { 259 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() {
256 return SkColorSetRGB(75, 155, 55); 260 return SkColorSetRGB(75, 155, 55);
257 } 261 }
258 262
259 } // namespace cc 263 } // 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