Index: include/effects/SkXfermodeImageFilter.h |
diff --git a/include/effects/SkXfermodeImageFilter.h b/include/effects/SkXfermodeImageFilter.h |
index 268651ad240780691c43e68aa05b5a11a80917ed..f1e5d71070a9537300dbe62d2ff40d23650b0a8b 100644 |
--- a/include/effects/SkXfermodeImageFilter.h |
+++ b/include/effects/SkXfermodeImageFilter.h |
@@ -21,20 +21,16 @@ |
*/ |
public: |
- static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, sk_sp<SkImageFilter> background, |
- sk_sp<SkImageFilter> foreground, const CropRect* cropRect); |
- static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, sk_sp<SkImageFilter> background) { |
- return Make(std::move(mode), std::move(background), nullptr, nullptr); |
+ static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, SkImageFilter* background, |
+ SkImageFilter* foreground, const CropRect* cropRect); |
+ static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, SkImageFilter* background) { |
+ return Make(std::move(mode), background, nullptr, nullptr); |
} |
- |
-#if defined(SK_SUPPORT_LEGACY_XFERMODE_PTR) || defined(SK_SUPPORT_LEGACY_IMAGEFILTER_PTR) |
+#ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR |
static SkImageFilter* Create(SkXfermode* mode, SkImageFilter* background, |
SkImageFilter* foreground = NULL, |
const CropRect* cropRect = NULL) { |
- return Make(sk_ref_sp(mode), |
- sk_ref_sp(background), |
- sk_ref_sp(foreground), |
- cropRect).release(); |
+ return Make(sk_ref_sp(mode), background, foreground, cropRect).release(); |
} |
#endif |
@@ -53,7 +49,7 @@ |
#endif |
protected: |
- SkXfermodeImageFilter(sk_sp<SkXfermode> mode, sk_sp<SkImageFilter> inputs[2], |
+ SkXfermodeImageFilter(sk_sp<SkXfermode> mode, SkImageFilter* inputs[2], |
const CropRect* cropRect); |
void flatten(SkWriteBuffer&) const override; |