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

Unified Diff: cc/resources/tile_manager.cc

Issue 1016733002: cc: Free gpu resources when we are invisible or TM is oom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« cc/resources/gpu_rasterizer.cc ('K') | « cc/resources/software_rasterizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« cc/resources/gpu_rasterizer.cc ('K') | « cc/resources/software_rasterizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698