Index: tests/ReadPixelsTest.cpp |
diff --git a/tests/ReadPixelsTest.cpp b/tests/ReadPixelsTest.cpp |
index b87d2b8ad7eff61700247cac3d6e86af2b1830f4..77a11e5f8bd379262fcc1698d0dbb12f8ae43b9f 100644 |
--- a/tests/ReadPixelsTest.cpp |
+++ b/tests/ReadPixelsTest.cpp |
@@ -556,8 +556,7 @@ static SkData* draw_into_surface(SkSurface* surf, const SkBitmap& bm, SkFilterQu |
canvas->translate(-SkScalarHalf(bm.width()), -SkScalarHalf(bm.height())); |
canvas->drawBitmap(bm, 0, 0, &paint); |
- SkAutoTUnref<SkImage> image(surf->newImageSnapshot()); |
- return image->encode(); |
+ return surf->makeImageSnapshot()->encode(); |
} |
#include "SkStream.h" |