| 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 SkPDFDocument_DEFINED | 10 #ifndef SkPDFDocument_DEFINED |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class SkPDFObject; | 22 class SkPDFObject; |
| 23 class SkWStream; | 23 class SkWStream; |
| 24 | 24 |
| 25 /** \class SkPDFDocument | 25 /** \class SkPDFDocument |
| 26 | 26 |
| 27 A SkPDFDocument assembles pages together and generates the final PDF file. | 27 A SkPDFDocument assembles pages together and generates the final PDF file. |
| 28 */ | 28 */ |
| 29 class SkPDFDocument { | 29 class SkPDFDocument { |
| 30 public: | 30 public: |
| 31 enum Flags { | 31 enum Flags { |
| 32 kNoCompression_Flags = 0x01, //!< mask disable stream compression. | 32 kNoCompression_Flags = 0x01, //!< DEPRECATED. |
| 33 kFavorSpeedOverSize_Flags = 0x01, //!< Don't compress the stream, but |
| 34 // if it already compressed return |
| 35 // the compressed stream. |
| 33 kNoLinks_Flags = 0x02, //!< do not honor link annotations. | 36 kNoLinks_Flags = 0x02, //!< do not honor link annotations. |
| 34 | 37 |
| 35 kDraftMode_Flags = 0x01, | 38 kDraftMode_Flags = 0x01, |
| 36 }; | 39 }; |
| 37 /** Create a PDF document. | 40 /** Create a PDF document. |
| 38 */ | 41 */ |
| 39 explicit SK_API SkPDFDocument(Flags flags = (Flags)0); | 42 explicit SK_API SkPDFDocument(Flags flags = (Flags)0); |
| 40 SK_API ~SkPDFDocument(); | 43 SK_API ~SkPDFDocument(); |
| 41 | 44 |
| 42 /** Output the PDF to the passed stream. It is an error to call this (it | 45 /** Output the PDF to the passed stream. It is an error to call this (it |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 size_t headerSize(); | 95 size_t headerSize(); |
| 93 | 96 |
| 94 /** Output the PDF footer to the passed stream. | 97 /** Output the PDF footer to the passed stream. |
| 95 * @param stream The writable output stream to send the footer to. | 98 * @param stream The writable output stream to send the footer to. |
| 96 * @param objCount The number of objects in the PDF. | 99 * @param objCount The number of objects in the PDF. |
| 97 */ | 100 */ |
| 98 void emitFooter(SkWStream* stream, int64_t objCount); | 101 void emitFooter(SkWStream* stream, int64_t objCount); |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 #endif | 104 #endif |
| OLD | NEW |