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

Unified Diff: cc/trees/damage_tracker.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Calculate damage of |force_render_surface|. Created 3 years, 7 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/trees/damage_tracker.h
diff --git a/cc/trees/damage_tracker.h b/cc/trees/damage_tracker.h
index 751eeb977e5b749503ec8c83fb9224cdb2aed576..e595a93373df86032c9374c5ba0fc7c2d7af8e97 100644
--- a/cc/trees/damage_tracker.h
+++ b/cc/trees/damage_tracker.h
@@ -41,6 +41,10 @@ class CC_EXPORT DamageTracker {
bool GetDamageRectIfValid(gfx::Rect* rect);
+ bool has_property_change_on_contributing_render_surface() const {
+ return has_property_change_on_contributing_render_surface_;
+ }
+
private:
DamageTracker();
@@ -144,6 +148,10 @@ class CC_EXPORT DamageTracker {
// Damage accumulated since the last call to PrepareForUpdate().
DamageAccumulator damage_for_this_update_;
+ // Property changes from contributing render surface accumulated since the
+ // last call to PrepareForUpdate().
+ bool has_property_change_on_contributing_render_surface_;
+
DISALLOW_COPY_AND_ASSIGN(DamageTracker);
};

Powered by Google App Engine
This is Rietveld 408576698