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

Unified Diff: cc/layers/layer.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
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 57c055b7fea3576c25ab680009ad6efe46a4f9c6..96b22bddd5bd24d05c133559e3c76661847fe19a 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -40,6 +40,7 @@ Layer::Layer()
: needs_push_properties_(false),
num_dependents_need_push_properties_(false),
stacking_order_changed_(false),
+ includes_first_paint_invalidation_(false),
// Layer IDs start from 1.
layer_id_(g_next_layer_id.GetNext() + 1),
ignore_set_needs_commit_(false),
@@ -992,6 +993,8 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
// union) any update changes that have occurred on the main thread.
update_rect_.Union(layer->update_rect());
layer->SetUpdateRect(update_rect_);
+ layer->SetIncludesFirstPaintInvalidation(includes_first_paint_invalidation_);
+ includes_first_paint_invalidation_ = false;
layer->SetStackingOrderChanged(stacking_order_changed_);
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698