Index: cc/test/fake_tile_manager.cc |
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc |
index 1fc2e43e7f861a902be572e7745f1807cd44528d..b051389bfacd820fe974eccd8dbc1fb67d453347 100644 |
--- a/cc/test/fake_tile_manager.cc |
+++ b/cc/test/fake_tile_manager.cc |
@@ -99,7 +99,13 @@ void FakeTileManager::DidFinishRunningTasksForTesting() { |
} |
void FakeTileManager::Release(Tile* tile) { |
+ // TODO(sohanjg): Find which tree the tile exists, and reset |
+ // priority for it. |
+ tile->SetPriority(ACTIVE_TREE, TilePriority()); |
+ tile->SetPriority(PENDING_TREE, TilePriority()); |
TileManager::Release(tile); |
+ |
+ FreeResourcesForReleasedTiles(); |
CleanUpReleasedTiles(); |
} |