Index: gm/matrixconvolution.cpp |
diff --git a/gm/matrixconvolution.cpp b/gm/matrixconvolution.cpp |
index b02f743f2933321cc38f27bb7d5dddf68eaa693c..153f7a530a4aa0d82758d407730b14ba99be8cf9 100644 |
--- a/gm/matrixconvolution.cpp |
+++ b/gm/matrixconvolution.cpp |
@@ -58,17 +58,15 @@ protected: |
SkISize kernelSize = SkISize::Make(3, 3); |
SkScalar gain = 0.3f, bias = SkIntToScalar(100); |
SkPaint paint; |
- SkAutoTUnref<SkImageFilter> filter( |
- SkMatrixConvolutionImageFilter::Create(kernelSize, |
- kernel, |
- gain, |
- bias, |
- kernelOffset, |
- tileMode, |
- convolveAlpha, |
- nullptr, |
- cropRect)); |
- paint.setImageFilter(filter); |
+ paint.setImageFilter(SkMatrixConvolutionImageFilter::Make(kernelSize, |
+ kernel, |
+ gain, |
+ bias, |
+ kernelOffset, |
+ tileMode, |
+ convolveAlpha, |
+ nullptr, |
+ cropRect)); |
canvas->save(); |
canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); |
canvas->clipRect(SkRect::MakeWH(SkIntToScalar(fBitmap.width()), |