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

Unified Diff: cc/layers/heads_up_display_layer_impl.cc

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export info for frameviewer too Created 6 years, 4 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 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 c46c1be1c6e3a705ab8ffcf256d328babd66ce22..c68d5f500e283bb945ab5cad7b0e29cab500798c 100644
--- a/cc/layers/heads_up_display_layer_impl.cc
+++ b/cc/layers/heads_up_display_layer_impl.cc
@@ -668,6 +668,7 @@ void HeadsUpDisplayLayerImpl::DrawDebugRects(
switch (debug_rects[i].type) {
case PAINT_RECT_TYPE:
+ case FIRST_PAINT_RECT_TYPE:
new_paint_rects.push_back(debug_rects[i]);
continue;
case PROPERTY_CHANGED_RECT_TYPE:
@@ -748,13 +749,15 @@ void HeadsUpDisplayLayerImpl::DrawDebugRects(
if (fade_step_ > 0) {
fade_step_--;
for (size_t i = 0; i < paint_rects_.size(); ++i) {
- DrawDebugRect(canvas,
- &paint,
- paint_rects_[i],
- DebugColors::PaintRectBorderColor(fade_step_),
- DebugColors::PaintRectFillColor(fade_step_),
- DebugColors::PaintRectBorderWidth(),
- "");
+ bool is_first_paint = paint_rects_[i].type == FIRST_PAINT_RECT_TYPE;
+ DrawDebugRect(
+ canvas,
+ &paint,
+ paint_rects_[i],
+ DebugColors::PaintRectBorderColor(fade_step_, is_first_paint),
+ DebugColors::PaintRectFillColor(fade_step_, is_first_paint),
+ DebugColors::PaintRectBorderWidth(),
+ "");
}
}
}
« no previous file with comments | « cc/debug/debug_rect_history.cc ('k') | cc/layers/layer.h » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698