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

Unified Diff: src/core/SkImageFilterCache.h

Issue 2360663002: Add a transient image filter cache to SkImage::makeWithFilter & PDF (Closed)
Patch Set: Improved Created 4 years, 3 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: src/core/SkImageFilterCache.h
diff --git a/src/core/SkImageFilterCache.h b/src/core/SkImageFilterCache.h
index 25079e194fc6b5d61ce05e64bf6ca6aba5ddc225..edc58b8196f74b27a0dda6496f9a6246bad3b188 100644
--- a/src/core/SkImageFilterCache.h
+++ b/src/core/SkImageFilterCache.h
@@ -48,6 +48,8 @@ struct SkImageFilterCacheKey {
// (result, offset).
class SkImageFilterCache : public SkRefCnt {
public:
+ enum { kDefaultSize = 32 * 1024 * 1024 };
Stephen White 2016/09/21 15:47:04 I support the idea of centralizing this, but calli
+
virtual ~SkImageFilterCache() {}
static SkImageFilterCache* Create(size_t maxBytes);
static SkImageFilterCache* Get();

Powered by Google App Engine
This is Rietveld 408576698