Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index 114c342ada91b09e94ec0ef754e59cd77a9c2ed1..172f84fa772b9b1183c9f5d428cf84d43616724e 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, |