aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/imagealphathreshold.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-01 10:34:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-01 10:34:43 -0700
commitf624204300d8cd3b2cdb933b144980ff56852d42 (patch)
tree3b46369860c5456f53daf67ec082afb7d6638029 /gm/imagealphathreshold.cpp
parent8f1dcaa6f3cc098bd5efd2595ca20e0bc1847d10 (diff)
Update SkAlphaThresholdFilter to sk_sp
Diffstat (limited to 'gm/imagealphathreshold.cpp')
-rw-r--r--gm/imagealphathreshold.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/imagealphathreshold.cpp b/gm/imagealphathreshold.cpp
index 8d65cf8ee7..fdd93bd210 100644
--- a/gm/imagealphathreshold.cpp
+++ b/gm/imagealphathreshold.cpp
@@ -35,7 +35,7 @@ SkPaint create_filter_paint() {
region.setRects(rects, 2);
SkPaint paint;
- paint.setImageFilter(SkAlphaThresholdFilter::Create(region, 0.2f, 0.7f))->unref();
+ paint.setImageFilter(SkAlphaThresholdFilter::Make(region, 0.2f, 0.7f, nullptr));
return paint;
}