Index: bench/SKPBench.cpp |
diff --git a/bench/SKPBench.cpp b/bench/SKPBench.cpp |
index b4724195df27d84749dc7c3f4f32ed37e38710ae..1d378b5046267ed5bd8c9ca89ab8abc4761b255e 100644 |
--- a/bench/SKPBench.cpp |
+++ b/bench/SKPBench.cpp |
@@ -90,7 +90,7 @@ void SKPBench::onPerCanvasPostDraw(SkCanvas* canvas) { |
// Draw the last set of tiles into the master canvas in case we're |
// saving the images |
for (int i = 0; i < fTileRects.count(); ++i) { |
- SkAutoTUnref<SkImage> image(fSurfaces[i]->newImageSnapshot()); |
+ sk_sp<SkImage> image(fSurfaces[i]->makeImageSnapshot()); |
canvas->drawImage(image, |
SkIntToScalar(fTileRects[i].fLeft), SkIntToScalar(fTileRects[i].fTop)); |
SkSafeSetNull(fSurfaces[i]); |