| Index: cc/resources/picture_layer_tiling.cc
|
| diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
|
| index c9bc7b3eeb03ac5dde978d3940b75b8c49066ac7..f4433a5efc0ff854ee5e49f8ba8715c6f04da5e5 100644
|
| --- a/cc/resources/picture_layer_tiling.cc
|
| +++ b/cc/resources/picture_layer_tiling.cc
|
| @@ -49,8 +49,6 @@ PictureLayerTiling::PictureLayerTiling(float contents_scale,
|
| }
|
|
|
| PictureLayerTiling::~PictureLayerTiling() {
|
| - for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it)
|
| - client_->DestroyTile(it->second.get());
|
| }
|
|
|
| void PictureLayerTiling::SetClient(PictureLayerTilingClient* client) {
|
| @@ -337,8 +335,6 @@ gfx::Size PictureLayerTiling::CoverageIterator::texture_size() const {
|
|
|
| void PictureLayerTiling::Reset() {
|
| live_tiles_rect_ = gfx::Rect();
|
| - for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); ++it)
|
| - client_->DestroyTile(it->second.get());
|
| tiles_.clear();
|
| }
|
|
|
| @@ -508,10 +504,8 @@ void PictureLayerTiling::SetLiveTilesRect(
|
| TileMap::iterator found = tiles_.find(key);
|
| // If the tile was outside of the recorded region, it won't exist even
|
| // though it was in the live rect.
|
| - if (found == tiles_.end())
|
| - continue;
|
| - client_->DestroyTile(found->second.get());
|
| - tiles_.erase(found);
|
| + if (found != tiles_.end())
|
| + tiles_.erase(found);
|
| }
|
|
|
| const PictureLayerTiling* twin_tiling = client_->GetTwinTiling(this);
|
|
|