Index: bench/MagnifierBench.cpp |
diff --git a/bench/MagnifierBench.cpp b/bench/MagnifierBench.cpp |
index 61850597fa03ae609c015c1e45a7bc22994eede9..98deade164f5f19339f058940bd9783c98b80e32 100644 |
--- a/bench/MagnifierBench.cpp |
+++ b/bench/MagnifierBench.cpp |
@@ -38,11 +38,11 @@ protected: |
const int h = fIsSmall ? FILTER_HEIGHT_SMALL : FILTER_HEIGHT_LARGE; |
SkPaint paint; |
paint.setImageFilter( |
- SkMagnifierImageFilter::Create( |
+ SkMagnifierImageFilter::Make( |
SkRect::MakeXYWH(SkIntToScalar(w / 4), |
SkIntToScalar(h / 4), |
SkIntToScalar(w / 2), |
- SkIntToScalar(h / 2)), 100))->unref(); |
+ SkIntToScalar(h / 2)), 100, nullptr)); |
for (int i = 0; i < loops; i++) { |
canvas->drawBitmap(fCheckerboard, 0, 0, &paint); |