Index: src/pdf/SkPDFDevice.h |
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h |
index b1345a8e3fbb8e7c85069e62703d649486382d14..310807d86ec4e54c1525519c2e7959e9599cadc0 100644 |
--- a/src/pdf/SkPDFDevice.h |
+++ b/src/pdf/SkPDFDevice.h |
@@ -144,8 +144,9 @@ |
// PDF specific methods. |
- /** Create the resource dictionary for this device. */ |
- sk_sp<SkPDFDict> makeResourceDict() const; |
+ /** Create the resource dictionary for this device. |
+ */ |
+ SkPDFDict* createResourceDict() const; |
/** Get the fonts used on this device. |
*/ |
@@ -163,12 +164,15 @@ |
*/ |
void appendDestinations(SkPDFDict* dict, SkPDFObject* page) const; |
- /** Returns a copy of the media box for this device. */ |
- sk_sp<SkPDFArray> copyMediaBox() const; |
- |
- /** Returns a SkStream with the page contents. |
- */ |
- skstd::unique_ptr<SkStreamAsset> content() const; |
+ /** Returns a copy of the media box for this device. The caller is required |
+ * to unref() this when it is finished. |
+ */ |
+ SkPDFArray* copyMediaBox() const; |
+ |
+ /** Returns a SkStream with the page contents. The caller is responsible |
+ * for a deleting the returned value. |
+ */ |
+ SkStreamAsset* content() const; |
/** Writes the page contents to the stream. */ |
void writeContent(SkWStream*) const; |