Index: gm/imagefiltersgraph.cpp |
diff --git a/gm/imagefiltersgraph.cpp b/gm/imagefiltersgraph.cpp |
index 8bf3930fec0dd5b89be1a186425850792c3a6e27..8c80ca3379d5a0ef5fbe833fbb21739d65f43df3 100644 |
--- a/gm/imagefiltersgraph.cpp |
+++ b/gm/imagefiltersgraph.cpp |
@@ -216,15 +216,14 @@ protected: |
SkIPoint kernelOffset = SkIPoint::Make(1, 1); |
auto tileMode = SkMatrixConvolutionImageFilter::kClamp_TileMode; |
bool convolveAlpha = false; |
- sk_sp<SkImageFilter> convolve( |
- SkMatrixConvolutionImageFilter::Create(kernelSize, |
- kernel, |
- gain, |
- bias, |
- kernelOffset, |
- tileMode, |
- convolveAlpha, |
- dilate.get())); |
+ sk_sp<SkImageFilter> convolve(SkMatrixConvolutionImageFilter::Make(kernelSize, |
+ kernel, |
+ gain, |
+ bias, |
+ kernelOffset, |
+ tileMode, |
+ convolveAlpha, |
+ std::move(dilate))); |
SkPaint paint; |
paint.setImageFilter(std::move(convolve)); |