Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index 8757f14c3abf085e18ee6bc5b8a0e9c85b118f47..759b35f8dd99cfc0682789c4a2ef64b06e5053fb 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -1708,9 +1708,8 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame) { |
DidDrawDamagedArea(); |
} |
active_tree_->root_layer()->ResetAllChangeTrackingForSubtree(); |
- active_tree_->property_trees()->transform_tree.ResetChangeTracking(); |
- active_tree_->property_trees()->effect_tree.ResetChangeTracking(); |
- active_tree_->property_trees()->changed = false; |
+ active_tree_->property_trees()->ResetAllChangeTracking( |
+ PropertyTrees::ResetFlags::ALL_TREES); |
active_tree_->set_has_ever_been_drawn(true); |
devtools_instrumentation::DidDrawFrame(id_); |
@@ -2009,11 +2008,9 @@ void LayerTreeHostImpl::ActivateSyncTree() { |
TreeSynchronizer::PushProperties(pending_tree_->root_layer(), |
active_tree_->root_layer()); |
pending_tree_->PushPropertiesTo(active_tree_.get()); |
- if (pending_tree_->root_layer()) { |
- pending_tree_->property_trees()->transform_tree.ResetChangeTracking(); |
- pending_tree_->property_trees()->effect_tree.ResetChangeTracking(); |
- pending_tree_->property_trees()->changed = false; |
- } |
+ if (pending_tree_->root_layer()) |
+ pending_tree_->property_trees()->ResetAllChangeTracking( |
+ PropertyTrees::ResetFlags::ALL_TREES); |
// Now that we've synced everything from the pending tree to the active |
// tree, rename the pending tree the recycle tree so we can reuse it on the |