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

Unified Diff: include/core/SkImageFilter.h

Issue 1392833005: Alternate version of SkLocalMatrixImageFilter using an input. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 0595010c6fba0321262feca28b887ce3bf272649..c913f8e31222e7389abb35fa397563116d67e4a1 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -230,6 +230,12 @@ public:
bool canComputeFastBounds() const;
/**
+ * If this filter can be represented by another filter + a localMatrix, return that filter,
+ * else return null.
+ */
+ virtual SkImageFilter* newWithLocalMatrix(const SkMatrix& localMatrix) const;
+
+ /**
* Create an SkMatrixImageFilter, which transforms its input by the given matrix.
*/
static SkImageFilter* CreateMatrixFilter(const SkMatrix& matrix,
@@ -387,9 +393,10 @@ protected:
private:
friend class SkGraphics;
- static void PurgeCache();
+ friend class SkLocalMatrixImageFilter;
bool usesSrcInput() const { return fUsesSrcInput; }
+ static void PurgeCache();
typedef SkFlattenable INHERITED;
int fInputCount;

Powered by Google App Engine
This is Rietveld 408576698