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

Side by Side Diff: cc/debug_colors.cc

Issue 12316084: cc: Consolidate the analysis_canvas operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win warning fix Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/debug_colors.h ('k') | cc/layer_tree_host_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_colors.h" 5 #include "cc/debug_colors.h"
6 6
7 #include "cc/layer_tree_impl.h" 7 #include "cc/layer_tree_impl.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 int DebugColors::ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl) { re turn Scale(2, tree_impl); } 61 int DebugColors::ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl) { re turn Scale(2, tree_impl); }
62 62
63 // Missing tile borders are red. 63 // Missing tile borders are red.
64 SkColor DebugColors::MissingTileBorderColor() { return SkColorSetARGB(100, 255, 0, 0); } 64 SkColor DebugColors::MissingTileBorderColor() { return SkColorSetARGB(100, 255, 0, 0); }
65 int DebugColors::MissingTileBorderWidth(const LayerTreeImpl* tree_impl) { return Scale(1, tree_impl); } 65 int DebugColors::MissingTileBorderWidth(const LayerTreeImpl* tree_impl) { return Scale(1, tree_impl); }
66 66
67 // Culled tile borders are brown. 67 // Culled tile borders are brown.
68 SkColor DebugColors::CulledTileBorderColor() { return SkColorSetARGB(120, 160, 1 00, 0); } 68 SkColor DebugColors::CulledTileBorderColor() { return SkColorSetARGB(120, 160, 1 00, 0); }
69 int DebugColors::CulledTileBorderWidth(const LayerTreeImpl* tree_impl) { return Scale(1, tree_impl); } 69 int DebugColors::CulledTileBorderWidth(const LayerTreeImpl* tree_impl) { return Scale(1, tree_impl); }
70 70
71 // Solid color tile borders are grey.
72 SkColor DebugColors::SolidColorTileBorderColor() { return SkColorSetARGB(128, 12 8, 128, 128); }
73 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) { ret urn Scale(1, tree_impl); }
74
71 // ======= Checkerboard colors ======= 75 // ======= Checkerboard colors =======
72 76
73 // Non-debug checkerboards are grey. 77 // Non-debug checkerboards are grey.
74 SkColor DebugColors::DefaultCheckerboardColor() { return SkColorSetRGB(241, 241, 241); } 78 SkColor DebugColors::DefaultCheckerboardColor() { return SkColorSetRGB(241, 241, 241); }
75 79
76 // Invalidated tiles get sky blue checkerboards. 80 // Invalidated tiles get sky blue checkerboards.
77 SkColor DebugColors::InvalidatedTileCheckerboardColor() { return SkColorSetRGB(1 28, 200, 245); } 81 SkColor DebugColors::InvalidatedTileCheckerboardColor() { return SkColorSetRGB(1 28, 200, 245); }
78 82
79 // Evicted tiles get pale red checkerboards. 83 // Evicted tiles get pale red checkerboards.
80 SkColor DebugColors::EvictedTileCheckerboardColor() { return SkColorSetRGB(255, 200, 200); } 84 SkColor DebugColors::EvictedTileCheckerboardColor() { return SkColorSetRGB(255, 200, 200); }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 SkColor DebugColors::HUDIndicatorLineColor() { return SkColorSetARGB(255, 80, 80 , 80); } 133 SkColor DebugColors::HUDIndicatorLineColor() { return SkColorSetARGB(255, 80, 80 , 80); }
130 134
131 SkColor DebugColors::PlatformLayerTreeTextColor() { return SK_ColorRED; } 135 SkColor DebugColors::PlatformLayerTreeTextColor() { return SK_ColorRED; }
132 SkColor DebugColors::FPSDisplayTextAndGraphColor() { return SK_ColorRED; } 136 SkColor DebugColors::FPSDisplayTextAndGraphColor() { return SK_ColorRED; }
133 SkColor DebugColors::MemoryDisplayTextColor() { return SkColorSetARGB(255, 220, 220, 220); } 137 SkColor DebugColors::MemoryDisplayTextColor() { return SkColorSetARGB(255, 220, 220, 220); }
134 138
135 // Paint time display in green (similar to paint times in the WebInspector) 139 // Paint time display in green (similar to paint times in the WebInspector)
136 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { return SkColorSetRGB( 75, 155, 55); } 140 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { return SkColorSetRGB( 75, 155, 55); }
137 141
138 } // namespace cc 142 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug_colors.h ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698