| Index: cc/picture_layer_tiling.cc
|
| diff --git a/cc/picture_layer_tiling.cc b/cc/picture_layer_tiling.cc
|
| index 1b2668c00d1a6601a5b9e4e99a4fe638492f6712..ff3afcba938d97dfaef10eb76e30ada2d77663e2 100644
|
| --- a/cc/picture_layer_tiling.cc
|
| +++ b/cc/picture_layer_tiling.cc
|
| @@ -321,6 +321,13 @@ void PictureLayerTiling::MoveTilePriorities(WhichTree src_tree,
|
| for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it) {
|
| it->second->set_priority(dst_tree, it->second->priority(src_tree));
|
| it->second->set_priority(src_tree, TilePriority());
|
| + // Tile holds a ref onto a picture pile. If the tile never gets invalidated
|
| + // and recreated, then that picture pile ref could exist indefinitely. To
|
| + // prevent this, ask the client to update the pile to its own ref. This
|
| + // will cause PicturePileImpls and their clones to get deleted once the
|
| + // corresponding PictureLayerImpl and any in flight raster jobs go out of
|
| + // scope.
|
| + client_->UpdatePile(it->second);
|
| }
|
| }
|
|
|
|
|