Use SkArithmeticImageFilter directly
authorMatthew Leibowitz <mattleibow@live.com>
Sat, 25 Mar 2017 00:35:08 +0000 (20:35 -0400)
committerMatthew Leibowitz <mattleibow@live.com>
Sat, 25 Mar 2017 00:35:08 +0000 (20:35 -0400)
src/c/sk_imagefilter.cpp

index 2bec4de..840e0ac 100644 (file)
@@ -22,6 +22,7 @@
 #include "SkPictureImageFilter.h"
 #include "SkTileImageFilter.h"
 #include "SkXfermodeImageFilter.h"
 #include "SkPictureImageFilter.h"
 #include "SkTileImageFilter.h"
 #include "SkXfermodeImageFilter.h"
+#include "SkArithmeticImageFilter.h"
 
 #include "sk_imagefilter.h"
 
 
 #include "sk_imagefilter.h"
 
@@ -431,7 +432,7 @@ SK_API sk_imagefilter_t* sk_imagefilter_new_arithmetic(
     sk_imagefilter_t* foreground /*NULL*/,
     const sk_imagefilter_croprect_t* cropRect /*NULL*/) {
 
     sk_imagefilter_t* foreground /*NULL*/,
     const sk_imagefilter_croprect_t* cropRect /*NULL*/) {
 
-    sk_sp<SkImageFilter> filter = SkXfermodeImageFilter::MakeArithmetic(
+    sk_sp<SkImageFilter> filter = SkArithmeticImageFilter::Make(
         k1, k2, k3, k4,
         enforcePMColor,
         sk_ref_sp(AsImageFilter(background)),
         k1, k2, k3, k4,
         enforcePMColor,
         sk_ref_sp(AsImageFilter(background)),