commit | efdfd51b68a300d5c6e28743fe0344ca05d1cec9 | [log] [tgz] |
---|---|---|
author | reed <reed@google.com> | Mon Apr 04 10:02:58 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Mon Apr 04 10:02:58 2016 -0700 |
tree | 3cd04d31a56219559e89f6eded6f7a894eb700ba | |
parent | 175cf0e51b9fbb075588c4d29e7e4257cea6f4ad [diff] [blame] |
switch maskfilters to sk_sp BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1852113003 Review URL: https://codereview.chromium.org/1852113003
diff --git a/src/c/sk_paint.cpp b/src/c/sk_paint.cpp index b48e28f..f82cd81 100644 --- a/src/c/sk_paint.cpp +++ b/src/c/sk_paint.cpp
@@ -5,6 +5,7 @@ * found in the LICENSE file. */ +#include "SkMaskFilter.h" #include "SkPaint.h" #include "SkShader.h" @@ -68,7 +69,7 @@ } void sk_paint_set_maskfilter(sk_paint_t* cpaint, sk_maskfilter_t* cfilter) { - AsPaint(cpaint)->setMaskFilter(AsMaskFilter(cfilter)); + AsPaint(cpaint)->setMaskFilter(sk_ref_sp(AsMaskFilter(cfilter))); } bool sk_paint_is_stroke(const sk_paint_t* cpaint) {