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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1808373002: cc : Make tree synchronization independent of layer tree hierarchy (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b22de54fd21c0bf080023b2e712a8fbf3d812e18..bf706b6149cc5476cea675444c58ae1166c9fa3b 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1974,13 +1974,7 @@ void LayerTreeHostImpl::ActivateSyncTree() {
active_tree_->root_layer()->PushLayerPropertyChangedForSubtree();
}
- std::unordered_set<LayerImpl*> layers_that_should_push_properties =
- pending_tree_->LayersThatShouldPushProperties();
- for (auto pending_layer : layers_that_should_push_properties) {
- LayerImpl* active_layer = active_tree_->LayerById(pending_layer->id());
- DCHECK(active_layer);
- pending_layer->PushPropertiesTo(active_layer);
- }
+ TreeSynchronizer::PushLayerProperties(pending_tree(), active_tree());
pending_tree_->PushPropertiesTo(active_tree_.get());
if (pending_tree_->root_layer())
pending_tree_->property_trees()->ResetAllChangeTracking(
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698