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

Unified Diff: include/core/SkImageFilter.h

Issue 1899263002: post apply non-scale transforms after imagefilters have run (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fission out gm to separate pre-CL Created 4 years, 8 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 a19633b7ab64fdcd9ea8a38d558886bba5f3e75c..71d085503cf28b4d7cb199768e9b40e239281072 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -248,7 +248,16 @@ public:
*/
static sk_sp<SkImageFilter> MakeMatrixFilter(const SkMatrix& matrix,
SkFilterQuality,
+ bool doAntiAlias,
sk_sp<SkImageFilter> input);
+
+ // Legacy version w/ no antialiasing
+ static sk_sp<SkImageFilter> MakeMatrixFilter(const SkMatrix& matrix,
+ SkFilterQuality quality,
+ sk_sp<SkImageFilter> input) {
+ return MakeMatrixFilter(matrix, quality, false, std::move(input));
+ }
+
#ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_PTR
static SkImageFilter* CreateMatrixFilter(const SkMatrix& matrix,
SkFilterQuality filterQuality,
« include/core/SkCanvas.h ('K') | « include/core/SkCanvas.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698