Index: gm/imagefiltersclipped.cpp |
diff --git a/gm/imagefiltersclipped.cpp b/gm/imagefiltersclipped.cpp |
index 7989f8b4b02e20a7f1cd0a65637354deaeefedc1..f2434112fa0a752785ed3ffe1665f95e0ec113d0 100644 |
--- a/gm/imagefiltersclipped.cpp |
+++ b/gm/imagefiltersclipped.cpp |
@@ -100,11 +100,12 @@ |
SkIntToScalar(3), SkIntToScalar(3), SK_ColorGREEN, |
SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, |
nullptr), |
- SkDisplacementMapEffect::Make(SkDisplacementMapEffect::kR_ChannelSelectorType, |
- SkDisplacementMapEffect::kR_ChannelSelectorType, |
- SkIntToScalar(12), |
- std::move(gradient), |
- checkerboard), |
+ sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create( |
+ SkDisplacementMapEffect::kR_ChannelSelectorType, |
+ SkDisplacementMapEffect::kR_ChannelSelectorType, |
+ SkIntToScalar(12), |
+ gradient.get(), |
+ checkerboard.get())), |
SkDilateImageFilter::Make(2, 2, checkerboard), |
SkErodeImageFilter::Make(2, 2, checkerboard), |
SkOffsetImageFilter::Make(SkIntToScalar(-16), SkIntToScalar(32), nullptr), |