| 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 |
| 11 #define SkPDFDocument_DEFINED | 11 #define SkPDFDocument_DEFINED |
| 12 | 12 |
| 13 #include "SkAdvancedTypefaceMetrics.h" | 13 #include "SkAdvancedTypefaceMetrics.h" |
| 14 #include "SkRefCnt.h" | 14 #include "SkRefCnt.h" |
| 15 #include "SkTDArray.h" | 15 #include "SkTDArray.h" |
| 16 #include "SkTScopedPtr.h" | 16 #include "SkTScopedPtr.h" |
| 17 | 17 |
| 18 class SkPDFCatalog; | 18 class SkPDFCatalog; |
| 19 class SkPDFDevice; | 19 class SkPDFDevice; |
| 20 class SkPDFDict; | 20 class SkPDFDict; |
| 21 class SkPDFPage; | 21 class SkPDFPage; |
| 22 class SkPDFObject; | 22 class SkPDFObject; |
| 23 class SkWStream; | 23 class SkWStream; |
| 24 template <typename T> class SK_API SkTSet; | 24 template <typename T> class SkTSet; |
| 25 | 25 |
| 26 /** \class SkPDFDocument | 26 /** \class SkPDFDocument |
| 27 | 27 |
| 28 A SkPDFDocument assembles pages together and generates the final PDF file. | 28 A SkPDFDocument assembles pages together and generates the final PDF file. |
| 29 */ | 29 */ |
| 30 class SkPDFDocument { | 30 class SkPDFDocument { |
| 31 public: | 31 public: |
| 32 enum Flags { | 32 enum Flags { |
| 33 kNoCompression_Flags = 0x01, //!< DEPRECATED. | 33 kNoCompression_Flags = 0x01, //!< DEPRECATED. |
| 34 kFavorSpeedOverSize_Flags = 0x01, //!< Don't compress the stream, but | 34 kFavorSpeedOverSize_Flags = 0x01, //!< Don't compress the stream, but |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 size_t headerSize(); | 96 size_t headerSize(); |
| 97 | 97 |
| 98 /** Output the PDF footer to the passed stream. | 98 /** Output the PDF footer to the passed stream. |
| 99 * @param stream The writable output stream to send the footer to. | 99 * @param stream The writable output stream to send the footer to. |
| 100 * @param objCount The number of objects in the PDF. | 100 * @param objCount The number of objects in the PDF. |
| 101 */ | 101 */ |
| 102 void emitFooter(SkWStream* stream, int64_t objCount); | 102 void emitFooter(SkWStream* stream, int64_t objCount); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif | 105 #endif |
| OLD | NEW |