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

Unified Diff: cc/layers/render_surface_impl.h

Issue 2360003002: cc: Compute SurfacePropertyChanged without depending on owning layer (Closed)
Patch Set: Address review comment Created 4 years, 3 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_unittest.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl.h
diff --git a/cc/layers/render_surface_impl.h b/cc/layers/render_surface_impl.h
index 38e7467da089546fa02774a479ee6e07e4d4add6..8d3b9fb453fc996bb094b4a4fa62b0baf98201c9 100644
--- a/cc/layers/render_surface_impl.h
+++ b/cc/layers/render_surface_impl.h
@@ -161,9 +161,11 @@ class CC_EXPORT RenderSurfaceImpl {
bool HasCopyRequest() const;
- void ResetPropertyChangedFlag() { surface_property_changed_ = false; }
+ void ResetPropertyChangedFlags();
bool SurfacePropertyChanged() const;
bool SurfacePropertyChangedOnlyFromDescendant() const;
+ bool AncestorPropertyChanged() const;
+ void NoteAncestorPropertyChanged();
DamageTracker* damage_tracker() const { return damage_tracker_.get(); }
@@ -225,6 +227,7 @@ class CC_EXPORT RenderSurfaceImpl {
// Is used to calculate the content rect from property trees.
gfx::Rect accumulated_content_rect_;
bool surface_property_changed_ : 1;
+ bool ancestor_property_changed_ : 1;
bool contributes_to_drawn_surface_ : 1;
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698