Index: src/pdf/SkPDFPage.cpp |
diff --git a/src/pdf/SkPDFPage.cpp b/src/pdf/SkPDFPage.cpp |
index 35fc4609c80d9295b3245d0272b8e2d0b1952aab..cb2fe2069353916dc7aeb281f68a027210ddbfd5 100644 |
--- a/src/pdf/SkPDFPage.cpp |
+++ b/src/pdf/SkPDFPage.cpp |
@@ -46,17 +46,6 @@ void SkPDFPage::finalizePage(SkPDFCatalog* catalog, bool firstPage, |
true); |
} |
-off_t SkPDFPage::getPageSize(SkPDFCatalog* catalog, off_t fileOffset) { |
- SkASSERT(fContentStream.get() != NULL); |
- catalog->setFileOffset(fContentStream.get(), fileOffset); |
- return SkToOffT(fContentStream->getOutputSize(catalog, true)); |
-} |
- |
-void SkPDFPage::emitPage(SkWStream* stream, SkPDFCatalog* catalog) { |
- SkASSERT(fContentStream.get() != NULL); |
- fContentStream->emitIndirectObject(stream, catalog); |
-} |
- |
// static |
void SkPDFPage::GeneratePageTree(const SkTDArray<SkPDFPage*>& pages, |
SkPDFCatalog* catalog, |
@@ -156,3 +145,7 @@ const SkPDFGlyphSetMap& SkPDFPage::getFontGlyphUsage() const { |
void SkPDFPage::appendDestinations(SkPDFDict* dict) { |
fDevice->appendDestinations(dict, this); |
} |
+ |
+SkPDFObject* SkPDFPage::getContentStream() const { |
+ return fContentStream.get(); |
+} |