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

Unified Diff: cc/layers/heads_up_display_layer_impl.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: Address danakj and vollick comments. 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/heads_up_display_layer_impl.cc
diff --git a/cc/layers/heads_up_display_layer_impl.cc b/cc/layers/heads_up_display_layer_impl.cc
index b7437bff1c9bc5384b7cbd11accb5e1d31e313ee..61489ee8b5303f7e3b1d9b9b8406783fb889124d 100644
--- a/cc/layers/heads_up_display_layer_impl.cc
+++ b/cc/layers/heads_up_display_layer_impl.cc
@@ -652,6 +652,12 @@ void HeadsUpDisplayLayerImpl::DrawDebugRects(
stroke_width = DebugColors::NonFastScrollableRectBorderWidth();
label_text = "repaints on scroll";
break;
+ case ANIMATION_BOUNDS_RECT_TYPE:
+ stroke_color = DebugColors::LayerAnimationBoundsBorderColor();
+ fill_color = DebugColors::LayerAnimationBoundsFillColor();
+ stroke_width = DebugColors::LayerAnimationBoundsBorderWidth();
+ label_text = "animation bounds";
+ break;
}
gfx::RectF debug_layer_rect = gfx::ScaleRect(debug_rects[i].rect,

Powered by Google App Engine
This is Rietveld 408576698