Index: gm/imagefiltersscaled.cpp |
diff --git a/gm/imagefiltersscaled.cpp b/gm/imagefiltersscaled.cpp |
index 4c48aec869549e68b83f8bf23bb3fd9051de388d..756b7c624cf11c85851ce1ce64f480dc6537656b 100644 |
--- a/gm/imagefiltersscaled.cpp |
+++ b/gm/imagefiltersscaled.cpp |
@@ -98,12 +98,11 @@ protected: |
SkIntToScalar(3), SkIntToScalar(3), SK_ColorYELLOW, |
SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, |
nullptr), |
- sk_sp<SkImageFilter>(SkDisplacementMapEffect::Create( |
- SkDisplacementMapEffect::kR_ChannelSelectorType, |
- SkDisplacementMapEffect::kR_ChannelSelectorType, |
- SkIntToScalar(12), |
- gradient.get(), |
- checkerboard.get())), |
+ SkDisplacementMapEffect::Make(SkDisplacementMapEffect::kR_ChannelSelectorType, |
+ SkDisplacementMapEffect::kR_ChannelSelectorType, |
+ SkIntToScalar(12), |
+ std::move(gradient), |
+ checkerboard), |
SkDilateImageFilter::Make(1, 1, checkerboard), |
SkErodeImageFilter::Make(1, 1, checkerboard), |
SkOffsetImageFilter::Make(SkIntToScalar(32), 0, nullptr), |