Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: cc/resources/tile_manager.h

Issue 366113002: cc: Do not cleanup tiles with raster tasks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits updated. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.h
diff --git a/cc/resources/tile_manager.h b/cc/resources/tile_manager.h
index 686d0d06aae9d1513915100210c1de18bb91fd1c..849e4a414146598411f5261cfcc6b0103be053e0 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -142,7 +142,11 @@ class CC_EXPORT TileManager : public RasterizerClient,
void SetRasterizerForTesting(Rasterizer* rasterizer);
- void CleanUpReleasedTilesForTesting() { CleanUpReleasedTiles(); }
+ void FreeResourcesAndCleanUpReleasedTilesForTesting() {
+ prioritized_tiles_.Clear();
+ FreeResourcesForReleasedTiles();
+ CleanUpReleasedTiles();
+ }
protected:
TileManager(TileManagerClient* client,
@@ -155,6 +159,7 @@ class CC_EXPORT TileManager : public RasterizerClient,
friend class Tile;
void DidChangeTilePriority(Tile* tile);
+ void FreeResourcesForReleasedTiles();
void CleanUpReleasedTiles();
// Overriden from RefCountedManager<Tile>:
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698