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

Unified Diff: cc/layers/picture_layer_unittest.cc

Issue 2108883004: Remove LayerTreeImpl::SetRootLayerFromLayerListForTesting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertytreestuff
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 | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_unittest.cc
diff --git a/cc/layers/picture_layer_unittest.cc b/cc/layers/picture_layer_unittest.cc
index 2d5874c1485396b3271680b32224b8db0b1fd514..98f8cedb34855580b5d8b666b47fa9392d31c237 100644
--- a/cc/layers/picture_layer_unittest.cc
+++ b/cc/layers/picture_layer_unittest.cc
@@ -389,13 +389,11 @@ TEST(PictureLayerTest, ClearVisibleRectWhenNoTiling) {
EXPECT_EQ(2, host->source_frame_number());
host_impl.ActivateSyncTree();
- host_impl.active_tree()->SetRootLayerFromLayerListForTesting();
// By updating the draw proprties on the active tree, we will set the viewport
// rect for tile priorities to something non-empty.
const bool can_use_lcd_text = false;
- host_impl.active_tree()->property_trees()->needs_rebuild = true;
- host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting();
+ host_impl.active_tree()->BuildPropertyTreesForTesting();
host_impl.active_tree()->UpdateDrawProperties(can_use_lcd_text);
layer->SetBounds(gfx::Size(11, 11));
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698