| OLD | NEW |
| 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 #ifndef SkPDFPage_DEFINED | 10 #ifndef SkPDFPage_DEFINED |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 * @param catalog The catalog to add page content objects to. | 41 * @param catalog The catalog to add page content objects to. |
| 42 * @param firstPage Indicate if this is the first page of a document. | 42 * @param firstPage Indicate if this is the first page of a document. |
| 43 * @param resourceObjects All the resource objects (recursively) used on | 43 * @param resourceObjects All the resource objects (recursively) used on |
| 44 * the page are added to this array. This gives | 44 * the page are added to this array. This gives |
| 45 * the caller a chance to deduplicate resources | 45 * the caller a chance to deduplicate resources |
| 46 * across pages. | 46 * across pages. |
| 47 */ | 47 */ |
| 48 void finalizePage(SkPDFCatalog* catalog, bool firstPage, | 48 void finalizePage(SkPDFCatalog* catalog, bool firstPage, |
| 49 SkTDArray<SkPDFObject*>* resourceObjects); | 49 SkTDArray<SkPDFObject*>* resourceObjects); |
| 50 | 50 |
| 51 /** Add destinations for this page to the supplied dictionary. |
| 52 * @param dict Dictionary to add destinations to. |
| 53 */ |
| 54 void appendDestinations(SkPDFDict* dict); |
| 55 |
| 51 /** Determine the size of the page content and store to the catalog | 56 /** Determine the size of the page content and store to the catalog |
| 52 * the offsets of all nonresource-indirect objects that make up the page | 57 * the offsets of all nonresource-indirect objects that make up the page |
| 53 * content. This must be called before emitPage(), but after finalizePage. | 58 * content. This must be called before emitPage(), but after finalizePage. |
| 54 * @param catalog The catalog to add the object offsets to. | 59 * @param catalog The catalog to add the object offsets to. |
| 55 * @param fileOffset The file offset where the page content will be | 60 * @param fileOffset The file offset where the page content will be |
| 56 * emitted. | 61 * emitted. |
| 57 */ | 62 */ |
| 58 off_t getPageSize(SkPDFCatalog* catalog, off_t fileOffset); | 63 off_t getPageSize(SkPDFCatalog* catalog, off_t fileOffset); |
| 59 | 64 |
| 60 /** Output the page content to the passed stream. | 65 /** Output the page content to the passed stream. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 91 | 96 |
| 92 private: | 97 private: |
| 93 // Multiple pages may reference the content. | 98 // Multiple pages may reference the content. |
| 94 SkAutoTUnref<SkPDFDevice> fDevice; | 99 SkAutoTUnref<SkPDFDevice> fDevice; |
| 95 | 100 |
| 96 // Once the content is finalized, put it into a stream for output. | 101 // Once the content is finalized, put it into a stream for output. |
| 97 SkAutoTUnref<SkPDFStream> fContentStream; | 102 SkAutoTUnref<SkPDFStream> fContentStream; |
| 98 }; | 103 }; |
| 99 | 104 |
| 100 #endif | 105 #endif |
| OLD | NEW |