Index: src/pdf/SkPDFBitmap.cpp |
diff --git a/src/pdf/SkPDFBitmap.cpp b/src/pdf/SkPDFBitmap.cpp |
index 24f5c6a00fc0d6a93311299d86ea8727dd1d1b3a..220d2b3e09f0dfde13ae0f5659273d4ef664c6d3 100644 |
--- a/src/pdf/SkPDFBitmap.cpp |
+++ b/src/pdf/SkPDFBitmap.cpp |
@@ -346,7 +346,7 @@ static void emit_image_xobject(SkWStream* stream, |
bitmap_to_pdf_pixels(bitmap, &deflateWStream); |
} |
deflateWStream.finalize(); // call before detachAsStream(). |
- SkAutoTDelete<SkStreamAsset> asset(buffer.detachAsStream()); |
+ std::unique_ptr<SkStreamAsset> asset(buffer.detachAsStream()); |
SkPDFDict pdfDict("XObject"); |
pdfDict.insertName("Subtype", "Image"); |