aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkImageFilterCache.h
diff options
context:
space:
mode:
authorGravatar brianosman <brianosman@google.com>2016-09-21 09:46:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-21 09:46:57 -0700
commit04a44d0fd45f5596c716e99e7a3bbcc03db0e05a (patch)
tree2dbd1b8dc623cdf1a72d4ed0e2f90851265be145 /src/core/SkImageFilterCache.h
parent3e8012e74f70bf49427a7422f9e5996c9882d4f3 (diff)
Add a transient image filter cache to SkImage::makeWithFilter & PDF
Added a bench for makeWithFilter (~23 ms -> ~6 ms median locally). Also fixed indentation. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2360663002 Review-Url: https://codereview.chromium.org/2360663002
Diffstat (limited to 'src/core/SkImageFilterCache.h')
-rw-r--r--src/core/SkImageFilterCache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkImageFilterCache.h b/src/core/SkImageFilterCache.h
index 25079e194f..a65357f69c 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 { kDefaultTransientSize = 32 * 1024 * 1024 };
+
virtual ~SkImageFilterCache() {}
static SkImageFilterCache* Create(size_t maxBytes);
static SkImageFilterCache* Get();