Index: gm/imagemagnifier.cpp |
diff --git a/gm/imagemagnifier.cpp b/gm/imagemagnifier.cpp |
index ae639d3b538b162b64a40b5604d041ddaea5d553..66961c915e389778a89fef7e7f4c5e01772d9e9a 100644 |
--- a/gm/imagemagnifier.cpp |
+++ b/gm/imagemagnifier.cpp |
@@ -37,7 +37,7 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
SkPaint paint; |
paint.setImageFilter( |
- new SkMagnifierImageFilter( |
+ SkMagnifierImageFilter::Create( |
SkRect::MakeXYWH(SkIntToScalar(100), SkIntToScalar(100), |
SkIntToScalar(WIDTH / 2), |
SkIntToScalar(HEIGHT / 2)), |