projects
/
platform
/
upstream
/
libSkiaSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
13c2b9b
)
Use SkArithmeticImageFilter directly
author
Matthew Leibowitz
<mattleibow@live.com>
Sat, 25 Mar 2017 00:35:08 +0000
(20:35 -0400)
committer
Matthew Leibowitz
<mattleibow@live.com>
Sat, 25 Mar 2017 00:35:08 +0000
(20:35 -0400)
src/c/sk_imagefilter.cpp
patch
|
blob
|
history
diff --git
a/src/c/sk_imagefilter.cpp
b/src/c/sk_imagefilter.cpp
index
2bec4de
..
840e0ac
100644
(file)
--- a/
src/c/sk_imagefilter.cpp
+++ b/
src/c/sk_imagefilter.cpp
@@
-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 = Sk
XfermodeImageFilter::MakeArithmetic
(
+ sk_sp<SkImageFilter> filter = Sk
ArithmeticImageFilter::Make
(
k1, k2, k3, k4,
enforcePMColor,
sk_ref_sp(AsImageFilter(background)),
k1, k2, k3, k4,
enforcePMColor,
sk_ref_sp(AsImageFilter(background)),