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

Unified Diff: src/pdf/SkPDFPage.h

Issue 846023003: In SkPDFDocument::emitPDF(), stop pre-calculating file offsets. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nit: space between functions Created 5 years, 11 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 | « src/pdf/SkPDFGraphicState.cpp ('k') | src/pdf/SkPDFPage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFPage.h
diff --git a/src/pdf/SkPDFPage.h b/src/pdf/SkPDFPage.h
index 47573c7438d80c1ca60916e8f9060a6a1380fee7..38cc5c45e59bb2e23f63222639a87a57b0636757 100644
--- a/src/pdf/SkPDFPage.h
+++ b/src/pdf/SkPDFPage.h
@@ -56,21 +56,6 @@ public:
*/
void appendDestinations(SkPDFDict* dict);
- /** Determine the size of the page content and store to the catalog
- * the offsets of all nonresource-indirect objects that make up the page
- * content. This must be called before emitPage(), but after finalizePage.
- * @param catalog The catalog to add the object offsets to.
- * @param fileOffset The file offset where the page content will be
- * emitted.
- */
- off_t getPageSize(SkPDFCatalog* catalog, off_t fileOffset);
-
- /** Output the page content to the passed stream.
- * @param stream The writable output stream to send the content to.
- * @param catalog The active object catalog.
- */
- void emitPage(SkWStream* stream, SkPDFCatalog* catalog);
-
/** Generate a page tree for the passed vector of pages. New objects are
* added to the catalog. The pageTree vector is populated with all of
* the 'Pages' dictionaries as well as the 'Page' objects. Page trees
@@ -97,6 +82,8 @@ public:
*/
const SkPDFGlyphSetMap& getFontGlyphUsage() const;
+ SkPDFObject* getContentStream() const;
+
private:
// Multiple pages may reference the content.
SkAutoTUnref<SkPDFDevice> fDevice;
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('k') | src/pdf/SkPDFPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698