Index: include/effects/SkDisplacementMapEffect.h |
diff --git a/include/effects/SkDisplacementMapEffect.h b/include/effects/SkDisplacementMapEffect.h |
index f93f2c445481991bcd208570298d8da0123a9004..4b6f321a22bab06fb4947e393f58e9a72edb0cb2 100644 |
--- a/include/effects/SkDisplacementMapEffect.h |
+++ b/include/effects/SkDisplacementMapEffect.h |
@@ -20,14 +20,13 @@ |
kA_ChannelSelectorType |
}; |
- ~SkDisplacementMapEffect() override; |
+ ~SkDisplacementMapEffect(); |
- static sk_sp<SkImageFilter> Make(ChannelSelectorType xChannelSelector, |
- ChannelSelectorType yChannelSelector, |
- SkScalar scale, |
- sk_sp<SkImageFilter> displacement, |
- sk_sp<SkImageFilter> color, |
- const CropRect* cropRect = nullptr); |
+ static SkImageFilter* Create(ChannelSelectorType xChannelSelector, |
+ ChannelSelectorType yChannelSelector, |
+ SkScalar scale, SkImageFilter* displacement, |
+ SkImageFilter* color = NULL, |
+ const CropRect* cropRect = NULL); |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkDisplacementMapEffect) |
@@ -39,26 +38,13 @@ |
SK_TO_STRING_OVERRIDE() |
-#ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_PTR |
- static SkImageFilter* Create(ChannelSelectorType xChannelSelector, |
- ChannelSelectorType yChannelSelector, |
- SkScalar scale, SkImageFilter* displacement, |
- SkImageFilter* color = nullptr, |
- const CropRect* cropRect = nullptr) { |
- return Make(xChannelSelector, yChannelSelector, scale, |
- sk_ref_sp<SkImageFilter>(displacement), |
- sk_ref_sp<SkImageFilter>(color), |
- cropRect).release(); |
- } |
-#endif |
- |
protected: |
sk_sp<SkSpecialImage> onFilterImage(SkSpecialImage* source, const Context&, |
SkIPoint* offset) const override; |
SkDisplacementMapEffect(ChannelSelectorType xChannelSelector, |
ChannelSelectorType yChannelSelector, |
- SkScalar scale, sk_sp<SkImageFilter> inputs[2], |
+ SkScalar scale, SkImageFilter* inputs[2], |
const CropRect* cropRect); |
void flatten(SkWriteBuffer&) const override; |