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

Unified Diff: cc/tiles/image_decode_cache.h

Issue 2844273004: cc: Make images that can't possibly fit in cache not checker. (Closed)
Patch Set: tests 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
« no previous file with comments | « cc/tiles/image_controller_unittest.cc ('k') | cc/tiles/software_image_decode_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/image_decode_cache.h
diff --git a/cc/tiles/image_decode_cache.h b/cc/tiles/image_decode_cache.h
index ca1f41e4cd9e5a0ea832d5646d191a99d7b93376..1b550a6b06e411718ea04d79d05d4cd6f351251d 100644
--- a/cc/tiles/image_decode_cache.h
+++ b/cc/tiles/image_decode_cache.h
@@ -96,6 +96,12 @@ class CC_EXPORT ImageDecodeCache {
// Clears all elements from the cache.
virtual void ClearCache() = 0;
+
+ // Returns the maximum amount of memory we would be able to lock. This ignores
+ // any temporary states, such as throttled, and return the maximum possible
+ // memory. It is used as an esimate of whether an image can fit into the
+ // locked budget before creating a task.
+ virtual size_t GetMaximumMemoryLimitBytes() const = 0;
};
} // namespace cc
« no previous file with comments | « cc/tiles/image_controller_unittest.cc ('k') | cc/tiles/software_image_decode_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698