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

Unified Diff: cc/layers/layer.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.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index dfbbdf7b6f732d3591cc6852cd262b9e2ced25d7..301afea1e0693fa262bf41dab5e4c1b5be2a5c9b 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -124,6 +124,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect);
void SetNeedsDisplay() { SetNeedsDisplayRect(gfx::RectF(bounds())); }
+ void SetIncludesFirstPaintInvalidation() {
+ includes_first_paint_invalidation_ = true;
+ }
void SetOpacity(float opacity);
float opacity() const { return opacity_; }
@@ -533,6 +536,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// Note this rect is in layer space (not content space).
gfx::RectF update_rect_;
+ bool includes_first_paint_invalidation_;
+
scoped_refptr<Layer> mask_layer_;
int layer_id_;
« no previous file with comments | « cc/layers/heads_up_display_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698