| 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;
|
|
|