Index: cc/resources/tile_manager.h |
diff --git a/cc/resources/tile_manager.h b/cc/resources/tile_manager.h |
index 581a78bf63b899b316246ba25ec04f74d86ab115..d305012b78d35bf2bafb2a62ebe5ae774fafd8d2 100644 |
--- a/cc/resources/tile_manager.h |
+++ b/cc/resources/tile_manager.h |
@@ -163,6 +163,15 @@ class CC_EXPORT TileManager : public RasterizerClient, |
CleanUpReleasedTiles(); |
} |
+ std::vector<Tile*> AllTilesForTesting() const { |
+ std::vector<Tile*> tiles; |
+ for (TileMap::const_iterator it = tiles_.begin(); it != tiles_.end(); |
+ ++it) { |
+ tiles.push_back(it->second); |
+ } |
+ return tiles; |
+ } |
+ |
protected: |
TileManager(TileManagerClient* client, |
const scoped_refptr<base::SequencedTaskRunner>& task_runner, |