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

Unified Diff: cc/heads_up_display_layer_impl.cc

Issue 11377122: cc: Visualize non-occluding rects in composited layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/debug_rect_history.cc ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/heads_up_display_layer_impl.cc
diff --git a/cc/heads_up_display_layer_impl.cc b/cc/heads_up_display_layer_impl.cc
index 17064c90bb2c13c2f5598ab1fdb9a955f46f47a1..6d49f70010d6836ce2c8f62ed7d242451d07b43f 100644
--- a/cc/heads_up_display_layer_impl.cc
+++ b/cc/heads_up_display_layer_impl.cc
@@ -301,7 +301,12 @@ void HeadsUpDisplayLayerImpl::drawDebugRects(SkCanvas* canvas, DebugRectHistory*
fillColor = SkColorSetARGB(10, 100, 0, 200);
break;
case OccludingRectType:
- // Occluding rects in a reddish color.
+ // Occluding rects in pink.
+ strokeColor = SkColorSetARGB(255, 245, 136, 255);
+ fillColor = SkColorSetARGB(10, 245, 136, 255);
+ break;
+ case NonOccludingRectType:
+ // Non-Occluding rects in a reddish color.
strokeColor = SkColorSetARGB(255, 200, 0, 100);
fillColor = SkColorSetARGB(10, 200, 0, 100);
break;
« no previous file with comments | « cc/debug_rect_history.cc ('k') | cc/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698