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

Side by Side Diff: src/pdf/SkPDFPage.cpp

Issue 827733004: Change function signature of SkPDFObject::emitObject. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('k') | src/pdf/SkPDFStream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkData.h" 10 #include "SkData.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 off_t SkPDFPage::getPageSize(SkPDFCatalog* catalog, off_t fileOffset) { 49 off_t SkPDFPage::getPageSize(SkPDFCatalog* catalog, off_t fileOffset) {
50 SkASSERT(fContentStream.get() != NULL); 50 SkASSERT(fContentStream.get() != NULL);
51 catalog->setFileOffset(fContentStream.get(), fileOffset); 51 catalog->setFileOffset(fContentStream.get(), fileOffset);
52 return SkToOffT(fContentStream->getOutputSize(catalog, true)); 52 return SkToOffT(fContentStream->getOutputSize(catalog, true));
53 } 53 }
54 54
55 void SkPDFPage::emitPage(SkWStream* stream, SkPDFCatalog* catalog) { 55 void SkPDFPage::emitPage(SkWStream* stream, SkPDFCatalog* catalog) {
56 SkASSERT(fContentStream.get() != NULL); 56 SkASSERT(fContentStream.get() != NULL);
57 fContentStream->emitObject(stream, catalog, true); 57 fContentStream->emitIndirectObject(stream, catalog);
58 } 58 }
59 59
60 // static 60 // static
61 void SkPDFPage::GeneratePageTree(const SkTDArray<SkPDFPage*>& pages, 61 void SkPDFPage::GeneratePageTree(const SkTDArray<SkPDFPage*>& pages,
62 SkPDFCatalog* catalog, 62 SkPDFCatalog* catalog,
63 SkTDArray<SkPDFDict*>* pageTree, 63 SkTDArray<SkPDFDict*>* pageTree,
64 SkPDFDict** rootNode) { 64 SkPDFDict** rootNode) {
65 // PDF wants a tree describing all the pages in the document. We arbitrary 65 // PDF wants a tree describing all the pages in the document. We arbitrary
66 // choose 8 (kNodeSize) as the number of allowed children. The internal 66 // choose 8 (kNodeSize) as the number of allowed children. The internal
67 // nodes have type "Pages" with an array of children, a parent pointer, and 67 // nodes have type "Pages" with an array of children, a parent pointer, and
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return fDevice->getFontResources(); 149 return fDevice->getFontResources();
150 } 150 }
151 151
152 const SkPDFGlyphSetMap& SkPDFPage::getFontGlyphUsage() const { 152 const SkPDFGlyphSetMap& SkPDFPage::getFontGlyphUsage() const {
153 return fDevice->getFontGlyphUsage(); 153 return fDevice->getFontGlyphUsage();
154 } 154 }
155 155
156 void SkPDFPage::appendDestinations(SkPDFDict* dict) { 156 void SkPDFPage::appendDestinations(SkPDFDict* dict) {
157 fDevice->appendDestinations(dict, this); 157 fDevice->appendDestinations(dict, this);
158 } 158 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFGraphicState.cpp ('k') | src/pdf/SkPDFStream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698