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

Unified Diff: cc/tiles/image_controller.cc

Issue 2844273004: cc: Make images that can't possibly fit in cache not checker. (Closed)
Patch Set: Created 3 years, 8 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
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(

Powered by Google App Engine
This is Rietveld 408576698