Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index e9211e51c2c87f72a11b6776946f539bd476ed62..b27ed8b51f65a984d3e1334c17f5462c9c93aedd 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -818,7 +818,7 @@ Error ImageGenSrc::draw(SkCanvas* canvas) const { |
// We have disabled these tests in DM.cpp. |
SkASSERT(kGray_8_SkColorType != gen->getInfo().colorType()); |
- SkAutoTDelete<SkImage> image(SkImage::NewFromGenerator(gen.release(), nullptr)); |
+ sk_sp<SkImage> image(SkImage::MakeFromGenerator(gen.release(), nullptr)); |
if (!image) { |
return "Could not create image from codec image generator."; |
} |
@@ -1315,7 +1315,7 @@ Error ViaTiles::draw(const Src& src, SkBitmap* bitmap, SkWStream* stream, SkStri |
mpd.draw(); |
for (int j = 0; j < yTiles; j++) { |
for (int i = 0; i < xTiles; i++) { |
- SkAutoTUnref<SkImage> image(surfaces[i+xTiles*j]->newImageSnapshot()); |
+ sk_sp<SkImage> image(surfaces[i+xTiles*j]->makeImageSnapshot()); |
canvas->drawImage(image, SkIntToScalar(i*fW), SkIntToScalar(j*fH)); |
} |
} |