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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/input/input_handler.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 "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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 // Other low-resolution tile borders are green. 109 // Other low-resolution tile borders are green.
110 SkColor DebugColors::ExtraLowResTileBorderColor() { 110 SkColor DebugColors::ExtraLowResTileBorderColor() {
111 return SkColorSetARGB(100, 93, 186, 18); 111 return SkColorSetARGB(100, 93, 186, 18);
112 } 112 }
113 int DebugColors::ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl) { 113 int DebugColors::ExtraLowResTileBorderWidth(const LayerTreeImpl* tree_impl) {
114 return Scale(2, tree_impl); 114 return Scale(2, tree_impl);
115 } 115 }
116 116
117 // Missing tile borders are dark grey. 117 // Missing tile borders are red.
118 SkColor DebugColors::MissingTileBorderColor() { 118 SkColor DebugColors::MissingTileBorderColor() {
119 return SkColorSetARGB(64, 64, 64, 0); 119 return SkColorSetARGB(100, 255, 0, 0);
120 } 120 }
121 int DebugColors::MissingTileBorderWidth(const LayerTreeImpl* tree_impl) { 121 int DebugColors::MissingTileBorderWidth(const LayerTreeImpl* tree_impl) {
122 return Scale(1, tree_impl); 122 return Scale(1, tree_impl);
123 } 123 }
124 124
125 // Solid color tile borders are grey. 125 // Solid color tile borders are grey.
126 SkColor DebugColors::SolidColorTileBorderColor() { 126 SkColor DebugColors::SolidColorTileBorderColor() {
127 return SkColorSetARGB(128, 128, 128, 128); 127 return SkColorSetARGB(128, 128, 128, 128);
128 } 128 }
129 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) { 129 int DebugColors::SolidColorTileBorderWidth(const LayerTreeImpl* tree_impl) {
130 return Scale(1, tree_impl); 130 return Scale(1, tree_impl);
131 } 131 }
132 132
133 // OOM tile borders are red. 133 // Picture tile borders are dark grey.
134 SkColor DebugColors::OOMTileBorderColor() { 134 SkColor DebugColors::PictureTileBorderColor() {
135 return SkColorSetARGB(100, 255, 0, 0); 135 return SkColorSetARGB(64, 64, 64, 0);
136 } 136 }
137 int DebugColors::OOMTileBorderWidth(const LayerTreeImpl* tree_impl) { 137 int DebugColors::PictureTileBorderWidth(const LayerTreeImpl* tree_impl) {
138 return Scale(1, tree_impl); 138 return Scale(1, tree_impl);
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 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 SkColor DebugColors::MemoryDisplayTextColor() { 294 SkColor DebugColors::MemoryDisplayTextColor() {
295 return SkColorSetARGB(255, 220, 220, 220); 295 return SkColorSetARGB(255, 220, 220, 220);
296 } 296 }
297 297
298 // Paint time display in green (similar to paint times in the WebInspector) 298 // Paint time display in green (similar to paint times in the WebInspector)
299 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { 299 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() {
300 return SkColorSetRGB(75, 155, 55); 300 return SkColorSetRGB(75, 155, 55);
301 } 301 }
302 302
303 } // namespace cc 303 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/input/input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698