summaryrefslogtreecommitdiffstats
path: root/cc/resources/picture_layer_tiling_set.h
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 12:50:18 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-09 12:50:18 +0000
commite7b86aaedb74d6322504963c35f9a6bb8f58b1f7 (patch)
tree1a7ff9af52d65c6465bf0db4a8ea3f44a96093c0 /cc/resources/picture_layer_tiling_set.h
parent01fd0b25383e971d2f7e1e6ae242cea94b586711 (diff)
downloadchromium_src-e7b86aaedb74d6322504963c35f9a6bb8f58b1f7.zip
chromium_src-e7b86aaedb74d6322504963c35f9a6bb8f58b1f7.tar.gz
chromium_src-e7b86aaedb74d6322504963c35f9a6bb8f58b1f7.tar.bz2
cc: Invalidate newly recycled tilings upon swapping.
This patch changes the way we invalidate recycled tiles. Previously, we would keep unshared tiles on the recycle tree until we create a new pending tree. When we do that, we invalidate two frames worth of invalidation. However, this relies on the tile manager to release memory from these tiles and doesn't yield itself to changes. The new approach invalidates the current invalidation on the recycle tree as soon as the tilings are swapped, which ensures that in that frame the tiles that are not shared are already released. R=enne Review URL: https://codereview.chromium.org/227673013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262670 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/picture_layer_tiling_set.h')
-rw-r--r--cc/resources/picture_layer_tiling_set.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/resources/picture_layer_tiling_set.h b/cc/resources/picture_layer_tiling_set.h
index e205019..9d07eb3 100644
--- a/cc/resources/picture_layer_tiling_set.h
+++ b/cc/resources/picture_layer_tiling_set.h
@@ -31,6 +31,8 @@ class CC_EXPORT PictureLayerTilingSet {
const Region& layer_invalidation,
float minimum_contents_scale);
+ void RemoveTilesInRegion(const Region& region);
+
gfx::Size layer_bounds() const { return layer_bounds_; }
void SetCanUseLCDText(bool can_use_lcd_text);