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

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

Issue 2609243003: [NOT FOR REVIEW]
Patch Set: Created 3 years, 11 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
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_in_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 gfx::Vector2dF elastic_overscroll = 202 gfx::Vector2dF elastic_overscroll =
203 root_layer->GetLayerTree()->elastic_overscroll(); 203 root_layer->GetLayerTree()->elastic_overscroll();
204 float page_scale_factor = 1.f; 204 float page_scale_factor = 1.f;
205 float device_scale_factor = 1.f; 205 float device_scale_factor = 1.f;
206 gfx::Size device_viewport_size = 206 gfx::Size device_viewport_size =
207 gfx::Size(root_layer->bounds().width() * device_scale_factor, 207 gfx::Size(root_layer->bounds().width() * device_scale_factor,
208 root_layer->bounds().height() * device_scale_factor); 208 root_layer->bounds().height() * device_scale_factor);
209 PropertyTrees* property_trees = 209 PropertyTrees* property_trees =
210 root_layer->GetLayerTree()->property_trees(); 210 root_layer->GetLayerTree()->property_trees();
211 update_layer_list_.clear(); 211 update_layer_list_.clear();
212 PropertyTrees* test_property_trees_with_new_clip_tree =
213 root_layer->GetLayerTree()->test_property_trees_with_new_clip_tree();
214 bool build_new_clip_tree = true;
212 PropertyTreeBuilder::BuildPropertyTrees( 215 PropertyTreeBuilder::BuildPropertyTrees(
213 root_layer, page_scale_layer, inner_viewport_scroll_layer, 216 root_layer, page_scale_layer, inner_viewport_scroll_layer,
214 outer_viewport_scroll_layer, overscroll_elasticity_layer, 217 outer_viewport_scroll_layer, overscroll_elasticity_layer,
218 elastic_overscroll, page_scale_factor, device_scale_factor,
219 gfx::Rect(device_viewport_size), gfx::Transform(), test_property_trees_w ith_new_clip_tree,
220 build_new_clip_tree);
221 PropertyTreeBuilder::BuildPropertyTrees(
222 root_layer, page_scale_layer, inner_viewport_scroll_layer,
223 outer_viewport_scroll_layer, overscroll_elasticity_layer,
215 elastic_overscroll, page_scale_factor, device_scale_factor, 224 elastic_overscroll, page_scale_factor, device_scale_factor,
216 gfx::Rect(device_viewport_size), gfx::Transform(), property_trees); 225 gfx::Rect(device_viewport_size), gfx::Transform(), property_trees);
217 draw_property_utils::UpdatePropertyTrees(property_trees, 226 draw_property_utils::UpdatePropertyTrees(property_trees,
218 can_render_to_separate_surface); 227 can_render_to_separate_surface);
219 draw_property_utils::FindLayersThatNeedUpdates( 228 draw_property_utils::FindLayersThatNeedUpdates(
220 root_layer->GetLayerTree(), property_trees, &update_layer_list_); 229 root_layer->GetLayerTree(), property_trees, &update_layer_list_);
221 } 230 }
222 231
223 void ExecuteCalculateDrawPropertiesAndSaveUpdateLayerList( 232 void ExecuteCalculateDrawPropertiesAndSaveUpdateLayerList(
224 LayerImpl* root_layer, 233 LayerImpl* root_layer,
(...skipping 10353 matching lines...) Expand 10 before | Expand all | Expand 10 after
10578 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index()); 10587 EXPECT_EQ(scroll_child6.id, grand_child10->scroll_tree_index());
10579 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index()); 10588 EXPECT_EQ(scroll_root1.id, parent3->scroll_tree_index());
10580 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index()); 10589 EXPECT_EQ(scroll_child7.id, child8->scroll_tree_index());
10581 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index()); 10590 EXPECT_EQ(scroll_root1.id, parent4->scroll_tree_index());
10582 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index()); 10591 EXPECT_EQ(scroll_root1.id, child9->scroll_tree_index());
10583 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index()); 10592 EXPECT_EQ(scroll_root1.id, grand_child12->scroll_tree_index());
10584 } 10593 }
10585 10594
10586 } // namespace 10595 } // namespace
10587 } // namespace cc 10596 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_host_in_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698