aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/effects/SkArithmeticMode.h4
-rw-r--r--include/effects/SkXfermodeImageFilter.h12
2 files changed, 16 insertions, 0 deletions
diff --git a/include/effects/SkArithmeticMode.h b/include/effects/SkArithmeticMode.h
index b160dc7e9b..81b9f85394 100644
--- a/include/effects/SkArithmeticMode.h
+++ b/include/effects/SkArithmeticMode.h
@@ -12,6 +12,8 @@
#include "SkScalar.h"
#include "SkXfermode.h"
+#ifdef SK_SUPPORT_LEGACY_ARITHMETICMODE
+
class SK_API SkArithmeticMode {
public:
/**
@@ -38,3 +40,5 @@ private:
};
#endif
+
+#endif
diff --git a/include/effects/SkXfermodeImageFilter.h b/include/effects/SkXfermodeImageFilter.h
index e39157550c..6066b8d2e0 100644
--- a/include/effects/SkXfermodeImageFilter.h
+++ b/include/effects/SkXfermodeImageFilter.h
@@ -26,6 +26,18 @@ public:
return Make(std::move(mode), std::move(background), nullptr, nullptr);
}
+ static sk_sp<SkImageFilter> MakeArithmetic(float k1, float k2, float k3, float k4,
+ bool enforcePMColor,
+ sk_sp<SkImageFilter> background,
+ sk_sp<SkImageFilter> foreground,
+ const SkImageFilter::CropRect* cropRect);
+ static sk_sp<SkImageFilter> MakeArithmetic(float k1, float k2, float k3, float k4,
+ bool enforcePMColor,
+ sk_sp<SkImageFilter> background) {
+ return MakeArithmetic(k1, k2, k3, k4, enforcePMColor, std::move(background),
+ nullptr, nullptr);
+ }
+
#ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR
static SkImageFilter* Create(SkXfermode* mode, SkImageFilter* background,
SkImageFilter* foreground = NULL,