| OLD | NEW |
| 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_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 gfx::Size(root_layer->bounds().width() * device_scale_factor, | 209 gfx::Size(root_layer->bounds().width() * device_scale_factor, |
| 210 root_layer->bounds().height() * device_scale_factor); | 210 root_layer->bounds().height() * device_scale_factor); |
| 211 PropertyTrees* property_trees = | 211 PropertyTrees* property_trees = |
| 212 root_layer->layer_tree_host()->property_trees(); | 212 root_layer->layer_tree_host()->property_trees(); |
| 213 update_layer_list_.clear(); | 213 update_layer_list_.clear(); |
| 214 PropertyTreeBuilder::BuildPropertyTrees( | 214 PropertyTreeBuilder::BuildPropertyTrees( |
| 215 root_layer, page_scale_layer, inner_viewport_scroll_layer, | 215 root_layer, page_scale_layer, inner_viewport_scroll_layer, |
| 216 outer_viewport_scroll_layer, overscroll_elasticity_layer, | 216 outer_viewport_scroll_layer, overscroll_elasticity_layer, |
| 217 elastic_overscroll, page_scale_factor, device_scale_factor, | 217 elastic_overscroll, page_scale_factor, device_scale_factor, |
| 218 gfx::Rect(device_viewport_size), gfx::Transform(), property_trees); | 218 gfx::Rect(device_viewport_size), gfx::Transform(), property_trees); |
| 219 draw_property_utils::UpdatePropertyTrees(property_trees, | 219 draw_property_utils::UpdatePropertyTrees(root_layer->layer_tree_host(), |
| 220 property_trees, |
| 220 can_render_to_separate_surface); | 221 can_render_to_separate_surface); |
| 221 draw_property_utils::FindLayersThatNeedUpdates( | 222 draw_property_utils::FindLayersThatNeedUpdates( |
| 222 root_layer->layer_tree_host(), property_trees, &update_layer_list_); | 223 root_layer->layer_tree_host(), property_trees, &update_layer_list_); |
| 223 } | 224 } |
| 224 | 225 |
| 225 void ExecuteCalculateDrawPropertiesAndSaveUpdateLayerList( | 226 void ExecuteCalculateDrawPropertiesAndSaveUpdateLayerList( |
| 226 LayerImpl* root_layer, | 227 LayerImpl* root_layer, |
| 227 bool skip_verify_visible_rect_calculations = false) { | 228 bool skip_verify_visible_rect_calculations = false) { |
| 228 DCHECK(root_layer->layer_tree_impl()); | 229 DCHECK(root_layer->layer_tree_impl()); |
| 229 PropertyTreeBuilder::PreCalculateMetaInformationForTesting(root_layer); | 230 PropertyTreeBuilder::PreCalculateMetaInformationForTesting(root_layer); |
| (...skipping 10548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10778 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); | 10779 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); |
| 10779 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); | 10780 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); |
| 10780 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); | 10781 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); |
| 10781 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); | 10782 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); |
| 10782 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); | 10783 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); |
| 10783 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); | 10784 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); |
| 10784 } | 10785 } |
| 10785 | 10786 |
| 10786 } // namespace | 10787 } // namespace |
| 10787 } // namespace cc | 10788 } // namespace cc |
| OLD | NEW |