aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-04-15 04:37:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-15 04:37:07 -0700
commita53011ef44705a091a8e24f7ea289a3f9ad759f2 (patch)
treeb3cca836becb797f55d0caacb3f4cca0bf4e910e /tests
parent834d9e109298ae704043128005f8c1bc622350f4 (diff)
Update DisplacementMapEffect to sk_sp
Diffstat (limited to 'tests')
-rw-r--r--tests/ImageFilterTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp
index 114c342ada..172f84fa77 100644
--- a/tests/ImageFilterTest.cpp
+++ b/tests/ImageFilterTest.cpp
@@ -160,10 +160,10 @@ public:
sk_sp<SkImageFilter> gradientSource(SkImageSource::Make(std::move(gradientImage)));
this->addFilter("displacement map",
- sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create(
- SkDisplacementMapEffect::kR_ChannelSelectorType,
- SkDisplacementMapEffect::kB_ChannelSelectorType,
- 20.0f, gradientSource.get(), input.get(), cropRect)));
+ SkDisplacementMapEffect::Make(SkDisplacementMapEffect::kR_ChannelSelectorType,
+ SkDisplacementMapEffect::kB_ChannelSelectorType,
+ 20.0f,
+ std::move(gradientSource), input, cropRect));
}
this->addFilter("blur", SkBlurImageFilter::Make(SK_Scalar1,