Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: src/pdf/SkPDFDevice.h

Issue 958433003: SkPDF: replace SkPDFDevice::copyContentToData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDevice.h
diff --git a/src/pdf/SkPDFDevice.h b/src/pdf/SkPDFDevice.h
index fc4f208f48a9712355ea068cfc1fa222b80d9eb5..679c24b8bfe1a8e0cbde9607bbce1de754ddf54b 100644
--- a/src/pdf/SkPDFDevice.h
+++ b/src/pdf/SkPDFDevice.h
@@ -162,15 +162,12 @@ public:
SK_API SkPDFArray* getAnnotations() const { return fAnnotations; }
/** Returns a SkStream with the page contents. The caller is responsible
- for a reference to the returned value.
- DEPRECATED: use copyContentToData()
+ for a deleting the returned value.
*/
- SK_API SkStream* content() const;
+ SK_API SkStreamAsset* content() const;
- /** Returns a SkStream with the page contents. The caller is responsible
- * for calling data->unref() when it is finished.
- */
- SK_API SkData* copyContentToData() const;
+ /** Writes the page contents to the stream. */
+ SK_API void writeContent(SkWStream*) const;
SK_API const SkMatrix& initialTransform() const {
return fInitialTransform;
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698