diff options
author | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 06:36:38 +0000 |
---|---|---|
committer | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 06:36:38 +0000 |
commit | 7ca6070491b0f45cc44c63a0cb71cecdbb88fe30 (patch) | |
tree | 45f74aa51a09661297ed9f869fc7135c6a2c8919 /cc/resources/picture_layer_tiling.cc | |
parent | df8971875e17a1542f8d1a56509f62f960cde9ab (diff) | |
download | chromium_src-7ca6070491b0f45cc44c63a0cb71cecdbb88fe30.zip chromium_src-7ca6070491b0f45cc44c63a0cb71cecdbb88fe30.tar.gz chromium_src-7ca6070491b0f45cc44c63a0cb71cecdbb88fe30.tar.bz2 |
cc: Clear tile priorities when tiling is reset.
This patch ensures that we clear the existing tile priorities when
the tiling is reset.
R=reveman
Review URL: https://codereview.chromium.org/441033002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287710 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/picture_layer_tiling.cc')
-rw-r--r-- | cc/resources/picture_layer_tiling.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc index 1bbe513..d281054 100644 --- a/cc/resources/picture_layer_tiling.cc +++ b/cc/resources/picture_layer_tiling.cc @@ -398,6 +398,8 @@ 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) + ReleaseTile(it->second.get(), client_->GetTree()); tiles_.clear(); } |