Index: include/effects/SkMagnifierImageFilter.h |
diff --git a/include/effects/SkMagnifierImageFilter.h b/include/effects/SkMagnifierImageFilter.h |
index 739f1eec733167df3df5806de464918218c01a8f..6e20297ff4a6066f47701ece8509743648737d03 100644 |
--- a/include/effects/SkMagnifierImageFilter.h |
+++ b/include/effects/SkMagnifierImageFilter.h |
@@ -14,7 +14,9 @@ |
class SK_API SkMagnifierImageFilter : public SkImageFilter { |
public: |
- static sk_sp<SkImageFilter> Make(const SkRect& src, SkScalar inset, sk_sp<SkImageFilter> input); |
+ static sk_sp<SkImageFilter> Make(const SkRect& src, SkScalar inset, |
+ sk_sp<SkImageFilter> input, |
+ const CropRect* cropRect = nullptr); |
SK_TO_STRING_OVERRIDE() |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMagnifierImageFilter) |
@@ -27,15 +29,14 @@ public: |
#endif |
protected: |
- SkMagnifierImageFilter(const SkRect& srcRect, SkScalar inset, sk_sp<SkImageFilter> input); |
+ SkMagnifierImageFilter(const SkRect& srcRect, |
+ SkScalar inset, |
+ sk_sp<SkImageFilter> input, |
+ const CropRect* cropRect); |
void flatten(SkWriteBuffer&) const override; |
- bool onFilterImageDeprecated(Proxy*, const SkBitmap& src, const Context&, |
- SkBitmap* result, SkIPoint* offset) const override; |
-#if SK_SUPPORT_GPU |
- bool asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const SkMatrix&, |
- const SkIRect& bounds) const override; |
-#endif |
+ sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, |
+ SkIPoint* offset) const override; |
private: |
SkRect fSrcRect; |