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

Unified Diff: cc/tiles/tile_manager_unittest.cc

Issue 2051013002: cc : Push layer lists instead of layer tree at commit and activation (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/test/layer_tree_host_common_test.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager_unittest.cc
diff --git a/cc/tiles/tile_manager_unittest.cc b/cc/tiles/tile_manager_unittest.cc
index b24892e69cfbcd8f4ccc395ebd80a69bcc95ab59..f4d2ae3a386d612eb88656820c11f18012b8553a 100644
--- a/cc/tiles/tile_manager_unittest.cc
+++ b/cc/tiles/tile_manager_unittest.cc
@@ -784,6 +784,7 @@ TEST_F(TileManagerTilePriorityQueueTest,
std::unique_ptr<FakePictureLayerImpl> pending_child =
FakePictureLayerImpl::CreateWithRasterSource(host_impl()->pending_tree(),
2, pending_raster_source);
+ int child_id = pending_child->id();
pending_layer()->AddChild(std::move(pending_child));
FakePictureLayerImpl* pending_child_layer =
@@ -799,8 +800,8 @@ TEST_F(TileManagerTilePriorityQueueTest,
ActivateTree();
SetupPendingTree(pending_raster_source);
- FakePictureLayerImpl* active_child_layer =
- static_cast<FakePictureLayerImpl*>(active_layer()->children()[0]);
+ FakePictureLayerImpl* active_child_layer = static_cast<FakePictureLayerImpl*>(
+ host_impl()->active_tree()->LayerById(child_id));
std::set<Tile*> all_tiles;
size_t tile_count = 0;
« no previous file with comments | « cc/test/layer_tree_host_common_test.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698