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

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 1921503005: cc: Move main thread hierarchy dependencies into PropertyTreeBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 TRACE_EVENT_END1("cc", "LayerTreeImpl::UpdateDrawProperties::UpdateTiles", 946 TRACE_EVENT_END1("cc", "LayerTreeImpl::UpdateDrawProperties::UpdateTiles",
947 "layers_updated_count", layers_updated_count); 947 "layers_updated_count", layers_updated_count);
948 } 948 }
949 949
950 DCHECK(!needs_update_draw_properties_) 950 DCHECK(!needs_update_draw_properties_)
951 << "CalcDrawProperties should not set_needs_update_draw_properties()"; 951 << "CalcDrawProperties should not set_needs_update_draw_properties()";
952 return true; 952 return true;
953 } 953 }
954 954
955 void LayerTreeImpl::BuildPropertyTreesForTesting() { 955 void LayerTreeImpl::BuildPropertyTreesForTesting() {
956 LayerTreeHostCommon::PreCalculateMetaInformationForTesting(root_layer_); 956 PropertyTreeBuilder::PreCalculateMetaInformationForTesting(root_layer_);
957 property_trees_.transform_tree.set_source_to_parent_updates_allowed(true); 957 property_trees_.transform_tree.set_source_to_parent_updates_allowed(true);
958 PropertyTreeBuilder::BuildPropertyTrees( 958 PropertyTreeBuilder::BuildPropertyTrees(
959 root_layer_, PageScaleLayer(), InnerViewportScrollLayer(), 959 root_layer_, PageScaleLayer(), InnerViewportScrollLayer(),
960 OuterViewportScrollLayer(), OverscrollElasticityLayer(), 960 OuterViewportScrollLayer(), OverscrollElasticityLayer(),
961 elastic_overscroll()->Current(IsActiveTree()), 961 elastic_overscroll()->Current(IsActiveTree()),
962 current_page_scale_factor(), device_scale_factor(), 962 current_page_scale_factor(), device_scale_factor(),
963 gfx::Rect(DrawViewportSize()), layer_tree_host_impl_->DrawTransform(), 963 gfx::Rect(DrawViewportSize()), layer_tree_host_impl_->DrawTransform(),
964 &property_trees_); 964 &property_trees_);
965 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); 965 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false);
966 } 966 }
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 } 2089 }
2090 2090
2091 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) { 2091 void LayerTreeImpl::ResetAllChangeTracking(PropertyTrees::ResetFlags flag) {
2092 layers_that_should_push_properties_.clear(); 2092 layers_that_should_push_properties_.clear();
2093 for (auto* layer : *this) 2093 for (auto* layer : *this)
2094 layer->ResetChangeTracking(); 2094 layer->ResetChangeTracking();
2095 property_trees_.ResetAllChangeTracking(flag); 2095 property_trees_.ResetAllChangeTracking(flag);
2096 } 2096 }
2097 2097
2098 } // namespace cc 2098 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_serialization.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698