Index: gm/matrixconvolution.cpp |
diff --git a/gm/matrixconvolution.cpp b/gm/matrixconvolution.cpp |
index b986cc1fc0ca719762cabc1481ebbf66aa7623a4..5976a40ce643d0715e65fd13f6c6080523cfd111 100644 |
--- a/gm/matrixconvolution.cpp |
+++ b/gm/matrixconvolution.cpp |
@@ -57,15 +57,15 @@ protected: |
SkScalar gain = 0.3f, bias = SkIntToScalar(100); |
SkPaint paint; |
SkAutoTUnref<SkImageFilter> filter( |
- SkNEW_ARGS(SkMatrixConvolutionImageFilter, (kernelSize, |
- kernel, |
- gain, |
- bias, |
- target, |
- tileMode, |
- convolveAlpha, |
- NULL, |
- cropRect))); |
+ SkMatrixConvolutionImageFilter::Create(kernelSize, |
+ kernel, |
+ gain, |
+ bias, |
+ target, |
+ tileMode, |
+ convolveAlpha, |
+ NULL, |
+ cropRect)); |
paint.setImageFilter(filter); |
canvas->save(); |
canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); |