Index: cc/tiles/image_controller.cc |
diff --git a/cc/tiles/image_controller.cc b/cc/tiles/image_controller.cc |
index ae81e64f96d06211f771c146df9d4263a4436a14..6ca3ccc1557b6afc032a26295f477ec67689796f 100644 |
--- a/cc/tiles/image_controller.cc |
+++ b/cc/tiles/image_controller.cc |
@@ -131,8 +131,10 @@ void ImageController::SetImageDecodeCache(ImageDecodeCache* cache) { |
cache_ = cache; |
- if (cache_) |
+ if (cache_) { |
+ image_cache_max_limit_bytes_ = cache_->GetMaximumMemoryLimit(); |
Khushal
2017/04/28 00:12:53
Reset this in !cache above?
vmpstr
2017/04/28 17:18:30
Done.
|
GenerateTasksForOrphanedRequests(); |
+ } |
} |
void ImageController::GetTasksForImagesAndRef( |