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..ccc7f2a87e9aa1c255924d2fc187fb86462a4fa6 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::GetMaximumMemoryLimitBytes() const { |
+ return locked_images_budget_.total_limit_bytes(); |
+} |
+ |
void SoftwareImageDecodeCache::RemovePendingTask(const ImageKey& key, |
DecodeTaskType task_type) { |
base::AutoLock lock(lock_); |