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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 2032303004: cc : Add layer_list to LayerTreeImpl and build it for tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index ab4fab8c95bd62335caeb4a741ecf0ec32eb94bc..5d22eb80aa18cedcc9f3b15617221f99ad168c02 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -1155,7 +1155,7 @@ class LayerTreeHostScrollTestScrollZeroMaxScrollOffset
scroll_layer->SetBounds(
gfx::Size(root->bounds().width() + 100, root->bounds().height() + 100));
impl->active_tree()->property_trees()->needs_rebuild = true;
- impl->active_tree()->BuildPropertyTreesForTesting();
+ impl->active_tree()->BuildLayerListAndPropertyTreesForTesting();
ScrollTree& scroll_tree =
impl->active_tree()->property_trees()->scroll_tree;
@@ -1173,7 +1173,7 @@ class LayerTreeHostScrollTestScrollZeroMaxScrollOffset
// Set max_scroll_offset = (0, 0).
scroll_layer->SetBounds(root->bounds());
impl->active_tree()->property_trees()->needs_rebuild = true;
- impl->active_tree()->BuildPropertyTreesForTesting();
+ impl->active_tree()->BuildLayerListAndPropertyTreesForTesting();
scroll_tree = impl->active_tree()->property_trees()->scroll_tree;
scroll_node = scroll_tree.Node(scroll_layer->scroll_tree_index());
status = impl->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::TOUCHSCREEN,
@@ -1185,7 +1185,7 @@ class LayerTreeHostScrollTestScrollZeroMaxScrollOffset
// Set max_scroll_offset = (-100, -100).
scroll_layer->SetBounds(gfx::Size());
impl->active_tree()->property_trees()->needs_rebuild = true;
- impl->active_tree()->BuildPropertyTreesForTesting();
+ impl->active_tree()->BuildLayerListAndPropertyTreesForTesting();
scroll_tree = impl->active_tree()->property_trees()->scroll_tree;
scroll_node = scroll_tree.Node(scroll_layer->scroll_tree_index());
status = impl->TryScroll(gfx::PointF(0.0f, 1.0f), InputHandler::TOUCHSCREEN,
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698