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

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

Issue 92853002: Support for drawing a debug border around animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy switches for chromeos Created 7 years 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/debug/debug_rect_history.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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 // Non-fast-scrollable rects in orange. 247 // Non-fast-scrollable rects in orange.
248 SkColor DebugColors::NonFastScrollableRectBorderColor() { 248 SkColor DebugColors::NonFastScrollableRectBorderColor() {
249 return SkColorSetARGB(255, 238, 163, 59); 249 return SkColorSetARGB(255, 238, 163, 59);
250 } 250 }
251 int DebugColors::NonFastScrollableRectBorderWidth() { return 2; } 251 int DebugColors::NonFastScrollableRectBorderWidth() { return 2; }
252 SkColor DebugColors::NonFastScrollableRectFillColor() { 252 SkColor DebugColors::NonFastScrollableRectFillColor() {
253 return SkColorSetARGB(30, 238, 163, 59); 253 return SkColorSetARGB(30, 238, 163, 59);
254 } 254 }
255 255
256 // Animation bounds are lime-green.
257 SkColor DebugColors::LayerAnimationBoundsBorderColor() {
258 return SkColorSetARGB(255, 112, 229, 0);
259 }
260 int DebugColors::LayerAnimationBoundsBorderWidth() { return 2; }
261 SkColor DebugColors::LayerAnimationBoundsFillColor() {
262 return SkColorSetARGB(30, 112, 229, 0);
263 }
264
256 // Non-Painted rects in cyan. 265 // Non-Painted rects in cyan.
257 SkColor DebugColors::NonPaintedFillColor() { return SK_ColorCYAN; } 266 SkColor DebugColors::NonPaintedFillColor() { return SK_ColorCYAN; }
258 267
259 // Missing picture rects in magenta. 268 // Missing picture rects in magenta.
260 SkColor DebugColors::MissingPictureFillColor() { return SK_ColorMAGENTA; } 269 SkColor DebugColors::MissingPictureFillColor() { return SK_ColorMAGENTA; }
261 270
262 // Picture borders in transparent blue. 271 // Picture borders in transparent blue.
263 SkColor DebugColors::PictureBorderColor() { 272 SkColor DebugColors::PictureBorderColor() {
264 return SkColorSetARGB(100, 0, 0, 200); 273 return SkColorSetARGB(100, 0, 0, 200);
265 } 274 }
(...skipping 15 matching lines...) Expand all
281 SkColor DebugColors::MemoryDisplayTextColor() { 290 SkColor DebugColors::MemoryDisplayTextColor() {
282 return SkColorSetARGB(255, 220, 220, 220); 291 return SkColorSetARGB(255, 220, 220, 220);
283 } 292 }
284 293
285 // Paint time display in green (similar to paint times in the WebInspector) 294 // Paint time display in green (similar to paint times in the WebInspector)
286 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() { 295 SkColor DebugColors::PaintTimeDisplayTextAndGraphColor() {
287 return SkColorSetRGB(75, 155, 55); 296 return SkColorSetRGB(75, 155, 55);
288 } 297 }
289 298
290 } // namespace cc 299 } // namespace cc
OLDNEW
« no previous file with comments | « cc/debug/debug_colors.h ('k') | cc/debug/debug_rect_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698