Index: src/pdf/SkPDFPage.cpp |
diff --git a/src/pdf/SkPDFPage.cpp b/src/pdf/SkPDFPage.cpp |
index b792f5e365297ac52e1e7e936d5696e55183e0c4..da0179a283563513c7f3921edac589e4684abf24 100644 |
--- a/src/pdf/SkPDFPage.cpp |
+++ b/src/pdf/SkPDFPage.cpp |
@@ -32,7 +32,7 @@ void SkPDFPage::finalizePage(SkPDFCatalog* catalog, bool firstPage, |
insert("Annots", annots); |
} |
- SkAutoTUnref<SkData> content(fDevice->copyContentToData()); |
+ SkAutoTDelete<SkStreamAsset> content(fDevice->content()); |
fContentStream.reset(new SkPDFStream(content.get())); |
insert("Contents", new SkPDFObjRef(fContentStream.get()))->unref(); |
} |