Cherry-pick: CC: Ensure recycle tree contains no 'active' tiles.
Cherry-pick of Chromium crrev.com/r226318
Active tilings become recycle tilings due to our tiling-swap
while activating. But some active tiles exist that are not
in the pending tree (due to invalidation).
We need to remove these tiles or reset their priorities,
as otherwise they will just take up memory in the Tile-
This adds DidBecomeRecycled, which resets all active
priorities. Combined with DidBecomeActive, this should
eliminate any 'old active tiles' (that were active and were
invalidated) from being prioritized in the TileManager.
5 files changed