Index: include/effects/SkXfermodeImageFilter.h |
diff --git a/include/effects/SkXfermodeImageFilter.h b/include/effects/SkXfermodeImageFilter.h |
index 6066b8d2e015aedc52585118b7038b0b33c7eb0c..fa9c857a7ea3a96030c44eaec1a64bd136fedbfe 100644 |
--- a/include/effects/SkXfermodeImageFilter.h |
+++ b/include/effects/SkXfermodeImageFilter.h |
@@ -8,6 +8,7 @@ |
#ifndef SkXfermodeImageFilter_DEFINED |
#define SkXfermodeImageFilter_DEFINED |
+#include "SkBlendMode.h" |
#include "SkImageFilter.h" |
class SkXfermode; |
@@ -19,11 +20,11 @@ class SkXfermode; |
*/ |
class SK_API SkXfermodeImageFilter { |
public: |
- static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, sk_sp<SkImageFilter> background, |
+ static sk_sp<SkImageFilter> Make(SkBlendMode, sk_sp<SkImageFilter> background, |
sk_sp<SkImageFilter> foreground, |
const SkImageFilter::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(SkBlendMode mode, sk_sp<SkImageFilter> background) { |
+ return Make(mode, std::move(background), nullptr, nullptr); |
} |
static sk_sp<SkImageFilter> MakeArithmetic(float k1, float k2, float k3, float k4, |
@@ -38,6 +39,16 @@ public: |
nullptr, nullptr); |
} |
+#ifdef SK_SUPPORT_LEGACY_XFERMODE_OBJECT |
+ static sk_sp<SkImageFilter> Make(sk_sp<SkXfermode> mode, sk_sp<SkImageFilter> background, |
+ sk_sp<SkImageFilter> foreground, |
+ const SkImageFilter::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); |
+ } |
+ |
+#endif |
+ |
#ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR |
static SkImageFilter* Create(SkXfermode* mode, SkImageFilter* background, |
SkImageFilter* foreground = NULL, |