Index: tests/SpecialImageTest.cpp |
diff --git a/tests/SpecialImageTest.cpp b/tests/SpecialImageTest.cpp |
index 7511e6297123a82b6d78ccfadf3ba4f670e5072c..03a496dbbaf747b669212efff94abb6ce98fd254 100644 |
--- a/tests/SpecialImageTest.cpp |
+++ b/tests/SpecialImageTest.cpp |
@@ -119,19 +119,19 @@ DEF_TEST(SpecialImage_Raster, reporter) { |
DEF_TEST(SpecialImage_Image, reporter) { |
SkBitmap bm = create_bm(); |
- SkAutoTUnref<SkImage> fullImage(SkImage::NewFromBitmap(bm)); |
+ sk_sp<SkImage> fullImage(SkImage::MakeFromBitmap(bm)); |
SkAutoTUnref<SkSpecialImage> fullSImage(SkSpecialImage::NewFromImage( |
nullptr, |
SkIRect::MakeWH(kFullSize, kFullSize), |
- fullImage)); |
+ fullImage.get())); |
const SkIRect& subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); |
{ |
SkAutoTUnref<SkSpecialImage> subSImg1(SkSpecialImage::NewFromImage(nullptr, |
subset, |
- fullImage)); |
+ fullImage.get())); |
test_image(subSImg1, reporter, true, false, kPad, kFullSize); |
} |