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

Unified Diff: include/core/SkImageFilter.h

Issue 1402133002: change back to method for localmatrix imagefilter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add comment for const-cast 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
« no previous file with comments | « gm/localmatriximagefilter.cpp ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImageFilter.h
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 0a3f7b8492d6bfd273b4db5e57d9ff903f556d08..3a7cb23d5e399a4fd552d167943c1e01f91f81e3 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -230,19 +230,18 @@ public:
bool canComputeFastBounds() const;
/**
+ * If this filter can be represented by another filter + a localMatrix, return that filter,
+ * else return null.
+ */
+ SkImageFilter* newWithLocalMatrix(const SkMatrix& matrix) const;
+
+ /**
* Create an SkMatrixImageFilter, which transforms its input by the given matrix.
*/
static SkImageFilter* CreateMatrixFilter(const SkMatrix& matrix,
SkFilterQuality,
SkImageFilter* input = NULL);
- /**
- * Create an SkLocalMatrixImageFilter, which transform the filter parameters
- * of its inputs by the given matrix.
- */
- static SkImageFilter* CreateLocalMatrixFilter(const SkMatrix& matrix,
- SkImageFilter* input);
-
#if SK_SUPPORT_GPU
/**
* Wrap the given texture in a texture-backed SkBitmap.
« no previous file with comments | « gm/localmatriximagefilter.cpp ('k') | src/core/SkImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698