Index: cc/resources/tile_manager.cc |
diff --git a/cc/resources/tile_manager.cc b/cc/resources/tile_manager.cc |
index 00ae3da6e92fed3b9a96a0d8e5b781df8541b4d8..fd12569f124175c3825d27acea00a9f1c5d56e7c 100644 |
--- a/cc/resources/tile_manager.cc |
+++ b/cc/resources/tile_manager.cc |
@@ -639,6 +639,8 @@ void TileManager::AssignGpuMemoryToTiles( |
if (tile_is_needed_now) |
had_enough_memory_to_schedule_tiles_needed_now = false; |
all_tiles_that_need_to_be_rasterized_are_scheduled_ = false; |
+ // OOM, clear cache (applicable in gpu-raster case) |
+ rasterizer_->ClearCache(); |
sohanjg
2015/03/17 11:20:18
Will this be the only place to clear cache when OO
vmiura
2015/03/19 21:20:35
I don't think this is the OOM condition where we s
sohanjg
2015/03/23 10:34:38
Acknowledged.
vmiura
2015/03/23 20:34:39
I'm not sure this is actually what we want to do.
|
break; |
} |