Index: tests/SkImageTest.cpp |
diff --git a/tests/SkImageTest.cpp b/tests/SkImageTest.cpp |
index 8817f0b597b924a87ff514326f3c142fd1b12193..4a05b44be1033ab974e65e38d84948a866d60c6f 100644 |
--- a/tests/SkImageTest.cpp |
+++ b/tests/SkImageTest.cpp |
@@ -14,7 +14,7 @@ static const int gHeight = 20; |
// Tests that SkNewImageFromBitmap obeys pixelref origin. |
DEF_TEST(SkImageFromBitmap_extractSubset, reporter) { |
- SkAutoTUnref<SkImage> image; |
+ sk_sp<SkImage> image; |
{ |
SkBitmap srcBitmap; |
srcBitmap.allocN32Pixels(gWidth, gHeight); |
@@ -26,7 +26,7 @@ DEF_TEST(SkImageFromBitmap_extractSubset, reporter) { |
canvas.drawIRect(r, p); |
SkBitmap dstBitmap; |
srcBitmap.extractSubset(&dstBitmap, r); |
- image.reset(SkImage::NewFromBitmap(dstBitmap)); |
+ image = SkImage::MakeFromBitmap(dstBitmap); |
} |
SkBitmap tgt; |