Index: gm/imagemagnifier.cpp |
diff --git a/gm/imagemagnifier.cpp b/gm/imagemagnifier.cpp |
index 73639813a32d16cfc8f19e8c418a2f76a6e00169..5697aa2480e06ced45393e79a63f3f52016d6dd3 100644 |
--- a/gm/imagemagnifier.cpp |
+++ b/gm/imagemagnifier.cpp |
@@ -15,11 +15,11 @@ |
DEF_SIMPLE_GM_BG(imagemagnifier, canvas, WIDTH, HEIGHT, SK_ColorBLACK) { |
SkPaint filterPaint; |
filterPaint.setImageFilter( |
- SkMagnifierImageFilter::Create( |
+ SkMagnifierImageFilter::Make( |
SkRect::MakeXYWH(SkIntToScalar(100), SkIntToScalar(100), |
SkIntToScalar(WIDTH / 2), |
SkIntToScalar(HEIGHT / 2)), |
- 100))->unref(); |
+ 100, nullptr)); |
canvas->saveLayer(nullptr, &filterPaint); |
const char* str = "The quick brown fox jumped over the lazy dog."; |
SkRandom rand; |