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

Unified Diff: include/core/SkImageFilter.h

Issue 1709263002: Update SkImageFilter's cache to handle SkSpecialImages and add unit test (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix comment Created 4 years, 10 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: include/core/SkImageFilter.h
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 29f6f7b760e2b2e27f9ab2dad92d9d8e0e2b5034..4f4d11d0165fdf204477a3e3c16c9dd577bfac3c 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -23,6 +23,7 @@ class SkBaseDevice;
class SkBitmap;
class SkColorFilter;
struct SkIPoint;
+class SkSpecialImage;
/**
* Base class for image filters. If one is installed in the paint, then
@@ -42,7 +43,9 @@ public:
static Cache* Create(size_t maxBytes);
static Cache* Get();
virtual bool get(const Key& key, SkBitmap* result, SkIPoint* offset) const = 0;
+ virtual SkSpecialImage* get(const Key& key, SkIPoint* offset) const = 0;
virtual void set(const Key& key, const SkBitmap& result, const SkIPoint& offset) = 0;
+ virtual void set(const Key& key, SkSpecialImage* image, const SkIPoint& offset) = 0;
virtual void purge() {}
virtual void purgeByKeys(const Key[], int) {}
};
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkImageFilter.cpp » ('j') | tests/ImageFilterCacheTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698