| Index: include/core/SkImageFilter.h
|
| diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
|
| index 7a65f53788d34a9d6caf967e55596fbd25fb4430..b3d748095571e3978cb63003197ff7be3af45d77 100644
|
| --- a/include/core/SkImageFilter.h
|
| +++ b/include/core/SkImageFilter.h
|
| @@ -56,6 +56,7 @@ public:
|
| virtual bool get(const SkImageFilter* key, SkBitmap* result, SkIPoint* offset) = 0;
|
| virtual void set(const SkImageFilter* key,
|
| const SkBitmap& result, const SkIPoint& offset) = 0;
|
| + virtual void remove(const SkImageFilter* key) = 0;
|
| };
|
|
|
| class Context {
|
| @@ -183,6 +184,17 @@ public:
|
| SkBitmap* result, SkIPoint* offset) const;
|
| #endif
|
|
|
| + /**
|
| + * Set an external cache to be used for all image filter processing. This
|
| + * will replace the default intra-frame cache.
|
| + */
|
| + static void SetExternalCache(Cache* cache);
|
| +
|
| + /**
|
| + * Returns the currently-set external cache, or NULL if none is set.
|
| + */
|
| + static Cache* GetExternalCache();
|
| +
|
| SK_DEFINE_FLATTENABLE_TYPE(SkImageFilter)
|
|
|
| protected:
|
| @@ -274,7 +286,6 @@ protected:
|
| const SkMatrix& matrix,
|
| const SkIRect& bounds) const;
|
|
|
| -
|
| private:
|
| typedef SkFlattenable INHERITED;
|
| int fInputCount;
|
|
|