diff options
Diffstat (limited to 'gm/imagefiltersclipped.cpp')
-rw-r--r-- | gm/imagefiltersclipped.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gm/imagefiltersclipped.cpp b/gm/imagefiltersclipped.cpp index 7989f8b4b0..f2434112fa 100644 --- a/gm/imagefiltersclipped.cpp +++ b/gm/imagefiltersclipped.cpp @@ -100,11 +100,12 @@ protected: 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), |