aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf/SkPDFDevice.h')
-rw-r--r--src/pdf/SkPDFDevice.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index b1345a8e3f..310807d86e 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -144,8 +144,9 @@ public:
// 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 @@ public:
*/
void appendDestinations(SkPDFDict* dict, SkPDFObject* page) const;
- /** Returns a copy of the media box for this device. */
- sk_sp<SkPDFArray> copyMediaBox() 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.
+ /** Returns a SkStream with the page contents. The caller is responsible
+ * for a deleting the returned value.
*/
- skstd::unique_ptr<SkStreamAsset> content() const;
+ SkStreamAsset* content() const;
/** Writes the page contents to the stream. */
void writeContent(SkWStream*) const;