Index: gm/resizeimagefilter.cpp |
diff --git a/gm/resizeimagefilter.cpp b/gm/resizeimagefilter.cpp |
index fa407c4bfadd37c98eca9d96fb022736b05a9b20..8f5c0152c5c7b7a2773153dd1e2f0083125d6242 100644 |
--- a/gm/resizeimagefilter.cpp |
+++ b/gm/resizeimagefilter.cpp |
@@ -35,9 +35,9 @@ protected: |
canvas->scale(deviceScaleX, deviceScaleY); |
canvas->translate(-rect.x(), -rect.y()); |
SkAutoTUnref<SkImageFilter> imageFilter( |
- new SkResizeImageFilter(SkScalarInvert(deviceScaleX), |
- SkScalarInvert(deviceScaleY), |
- filterLevel)); |
+ SkResizeImageFilter::Create(SkScalarInvert(deviceScaleX), |
+ SkScalarInvert(deviceScaleY), |
+ filterLevel)); |
SkPaint filteredPaint; |
filteredPaint.setImageFilter(imageFilter.get()); |
canvas->saveLayer(&rect, &filteredPaint); |