Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index 172f84fa772b9b1183c9f5d428cf84d43616724e..114c342ada91b09e94ec0ef754e59cd77a9c2ed1 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -160,10 +160,10 @@ |
sk_sp<SkImageFilter> gradientSource(SkImageSource::Make(std::move(gradientImage))); |
this->addFilter("displacement map", |
- SkDisplacementMapEffect::Make(SkDisplacementMapEffect::kR_ChannelSelectorType, |
- SkDisplacementMapEffect::kB_ChannelSelectorType, |
- 20.0f, |
- std::move(gradientSource), input, cropRect)); |
+ sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create( |
+ SkDisplacementMapEffect::kR_ChannelSelectorType, |
+ SkDisplacementMapEffect::kB_ChannelSelectorType, |
+ 20.0f, gradientSource.get(), input.get(), cropRect))); |
} |
this->addFilter("blur", SkBlurImageFilter::Make(SK_Scalar1, |