Index: tools/VisualBench/WrappedBenchmark.h |
diff --git a/tools/VisualBench/WrappedBenchmark.h b/tools/VisualBench/WrappedBenchmark.h |
index c947a3ed37edc0aed0db0dad8131af2ce858a7e8..35d64ee1827e1b0ceba33cca333ab1b2c82c2969 100644 |
--- a/tools/VisualBench/WrappedBenchmark.h |
+++ b/tools/VisualBench/WrappedBenchmark.h |
@@ -84,10 +84,10 @@ private: |
} |
void onBlitToScreen(SkCanvas* canvas, int w, int h) override { |
- SkAutoTUnref<SkImage> image(fOffScreen->newImageSnapshot()); |
+ sk_sp<SkImage> image(fOffScreen->makeImageSnapshot()); |
SkPaint blitPaint; |
blitPaint.setXfermodeMode(SkXfermode::kSrc_Mode); |
- canvas->drawImageRect(image, SkIRect::MakeWH(w, h), |
+ canvas->drawImageRect(image.get(), SkIRect::MakeWH(w, h), |
SkRect::MakeWH(SkIntToScalar(w), SkIntToScalar(h)), &blitPaint); |
} |