Index: cc/tiles/software_image_decode_cache.cc |
diff --git a/cc/tiles/software_image_decode_cache.cc b/cc/tiles/software_image_decode_cache.cc |
index 716d1f45ef3d1df3b5b6ca2034301acae0201c39..390974f976888baf47ecb3f20f59d5738e7419bc 100644 |
--- a/cc/tiles/software_image_decode_cache.cc |
+++ b/cc/tiles/software_image_decode_cache.cc |
@@ -839,6 +839,10 @@ void SoftwareImageDecodeCache::ClearCache() { |
ReduceCacheUsageUntilWithinLimit(0); |
} |
+size_t SoftwareImageDecodeCache::GetMaximumMemoryLimit() const { |
+ return locked_images_budget_.total_limit_bytes(); |
+} |
+ |
void SoftwareImageDecodeCache::RemovePendingTask(const ImageKey& key, |
DecodeTaskType task_type) { |
base::AutoLock lock(lock_); |