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

Unified Diff: cc/trees/property_tree.h

Issue 1752993002: cc : Delete LayerImpl::NoteLayerPropertyChangedForSubtree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index a9f160ed7f59b99702b325f22a8a5994f8968285..4e3b0aa89e41978861435b45fdff8a320bcece7f 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -258,9 +258,9 @@ struct CC_EXPORT EffectNodeData {
bool has_background_filters;
bool is_drawn;
bool has_animated_opacity;
- // We need to track changes to opacity on the compositor to compute damage
+ // We need to track changes to effects on the compositor to compute damage
// rect.
- bool opacity_changed;
+ bool effect_changed;
int num_copy_requests_in_subtree;
int transform_id;
int clip_id;
@@ -528,7 +528,7 @@ class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
void UpdateEffects(int id);
- void UpdateOpacityChanged(EffectNode* node, EffectNode* parent_node);
+ void UpdateEffectChanged(EffectNode* node, EffectNode* parent_node);
void ClearCopyRequests();
@@ -587,6 +587,9 @@ class CC_EXPORT PropertyTrees final {
// we did any change tracking so that we can skip copying the change status
// between property trees when this bool is false.
bool changed;
+ // We cache a global bool for full tree damages to avoid walking the entire
+ // tree.
+ bool full_tree_damaged;
int sequence_number;
void SetInnerViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);

Powered by Google App Engine
This is Rietveld 408576698