aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-09-29 12:15:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-29 12:15:52 -0700
commit75135d8ae1aa12e8e6bfce63291e5e876a77546f (patch)
treebd7195ed906ec106391636ef589016526b95a694 /include
parent62a69c26b3a34c259918d6c97b4dea76b6285b67 (diff)
Implement SkImageFilter::Cache with SkResourceCache.
The single global cache now uses the global SkResourceCache, and any Create()ed cache uses a local SkResourceCache. No real public API changes (and only deletes). I don't see any pixel diffs on .skps or GMs. Don't see any significant perf difference on 8888 or gpu configs. DM peak memory usage did drop by about 113M, close to the 128M cache size. BUG=skia:3662 Landing PS8 temporarily to trigger the perf bots. TBR=reed@google.com Review URL: https://codereview.chromium.org/1370323002
Diffstat (limited to 'include')
-rw-r--r--include/core/SkImageFilter.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 1ca1c01c08..9484159936 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -42,7 +42,6 @@ public:
static Cache* Get();
virtual bool get(const Key& key, SkBitmap* result, SkIPoint* offset) const = 0;
virtual void set(const Key& key, const SkBitmap& result, const SkIPoint& offset) = 0;
- virtual void purge() {}
};
class Context {
@@ -375,9 +374,6 @@ protected:
virtual bool affectsTransparentBlack() const;
private:
- friend class SkGraphics;
- static void PurgeCache();
-
bool usesSrcInput() const { return fUsesSrcInput; }
typedef SkFlattenable INHERITED;