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

Unified Diff: cc/layers/layer_impl.h

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/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index b09cb3f4970792d56829a9899dcd48d048450527..910518844e2bb92939b8d1822cd455c82bf57632 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -469,8 +469,14 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// Note this rect is in layer space (not content space).
void SetUpdateRect(const gfx::RectF& update_rect);
+ void SetIncludesFirstPaintInvalidation(bool b) {
+ includes_first_paint_invalidation_ = b;
+ }
const gfx::RectF& update_rect() const { return update_rect_; }
+ bool includes_first_paint_invalidation() const {
+ return includes_first_paint_invalidation_;
+ }
void AddDamageRect(const gfx::RectF& damage_rect);
@@ -686,6 +692,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// Uses layer (not content) space.
gfx::RectF update_rect_;
+ bool includes_first_paint_invalidation_;
+
// This rect is in layer space.
gfx::RectF damage_rect_;
« cc/layers/layer.cc ('K') | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698