Index: cc/resources/tile_manager.cc |
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc |
index 3e91167866031a18cb3c342f37f4f1fa4c9d3c1b..0606fc92653d82d000ef1252925650515d627e60 100644 |
--- a/cc/resources/tile_manager.cc |
+++ b/cc/resources/tile_manager.cc |
@@ -626,6 +626,9 @@ void TileManager::AssignGpuMemoryToTiles( |
} |
void TileManager::CleanUpUnusedImageDecodeTasks() { |
+ if (image_decode_tasks_.empty()) |
+ return; |
+ |
// Calculate a set of layers that are used by at least one tile. |
base::hash_set<int> used_layers; |
for (TileMap::iterator it = tiles_.begin(); it != tiles_.end(); ++it) |