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

Unified Diff: cc/layers/scrollbar_layer_unittest.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/layers/render_surface_unittest.cc ('k') | cc/layers/video_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/scrollbar_layer_unittest.cc
diff --git a/cc/layers/scrollbar_layer_unittest.cc b/cc/layers/scrollbar_layer_unittest.cc
index eed2bf35082f0121a0fefd4064232bbf73bb2997..a9df426fde8d4735f52a0c267aa6f7cef5e3dcd5 100644
--- a/cc/layers/scrollbar_layer_unittest.cc
+++ b/cc/layers/scrollbar_layer_unittest.cc
@@ -162,7 +162,8 @@ TEST_F(ScrollbarLayerTest, ShouldScrollNonOverlayOnMainThread) {
static_cast<PaintedScrollbarLayerImpl*>(
layer_impl_tree_root->layer_tree_impl()->LayerById(
scrollbar_layer_id_));
- layer_impl_tree_root->layer_tree_impl()->BuildPropertyTreesForTesting();
+ layer_impl_tree_root->layer_tree_impl()
+ ->BuildLayerListAndPropertyTreesForTesting();
ScrollTree& scroll_tree =
layer_impl_tree_root->layer_tree_impl()->property_trees()->scroll_tree;
ScrollNode* scroll_node =
@@ -184,7 +185,8 @@ TEST_F(ScrollbarLayerTest, ShouldScrollNonOverlayOnMainThread) {
layer_tree_host_.get(), std::move(scrollbar), false, false, 0, 0);
scrollbar_layer_impl = static_cast<PaintedScrollbarLayerImpl*>(
layer_impl_tree_root->layer_tree_impl()->LayerById(scrollbar_layer_id_));
- layer_impl_tree_root->layer_tree_impl()->BuildPropertyTreesForTesting();
+ layer_impl_tree_root->layer_tree_impl()
+ ->BuildLayerListAndPropertyTreesForTesting();
scroll_tree =
layer_impl_tree_root->layer_tree_impl()->property_trees()->scroll_tree;
scroll_node = scroll_tree.Node(scrollbar_layer_impl->scroll_tree_index());
« no previous file with comments | « cc/layers/render_surface_unittest.cc ('k') | cc/layers/video_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698