OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #ifndef SkPDFDocument_DEFINED | 7 #ifndef SkPDFDocument_DEFINED |
8 #define SkPDFDocument_DEFINED | 8 #define SkPDFDocument_DEFINED |
9 | 9 |
10 #include "SkDocument.h" | 10 #include "SkDocument.h" |
| 11 #include "SkPDFCanon.h" |
11 #include "SkPDFMetadata.h" | 12 #include "SkPDFMetadata.h" |
12 #include "SkPDFFont.h" | 13 #include "SkPDFFont.h" |
13 | 14 |
14 class SkPDFDevice; | 15 class SkPDFDevice; |
15 | 16 |
16 sk_sp<SkDocument> SkPDFMakeDocument( | 17 sk_sp<SkDocument> SkPDFMakeDocument( |
17 SkWStream* stream, | 18 SkWStream* stream, |
18 void (*doneProc)(SkWStream*, bool), | 19 void (*doneProc)(SkWStream*, bool), |
19 SkScalar rasterDpi, | 20 SkScalar rasterDpi, |
20 SkPixelSerializer* jpegEncoder); | 21 SkPixelSerializer* jpegEncoder); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 SkPDFGlyphSetMap fGlyphUsage; | 76 SkPDFGlyphSetMap fGlyphUsage; |
76 SkTArray<sk_sp<SkPDFDict>> fPages; | 77 SkTArray<sk_sp<SkPDFDict>> fPages; |
77 sk_sp<SkPDFDict> fDests; | 78 sk_sp<SkPDFDict> fDests; |
78 sk_sp<SkPDFDevice> fPageDevice; | 79 sk_sp<SkPDFDevice> fPageDevice; |
79 sk_sp<SkCanvas> fCanvas; | 80 sk_sp<SkCanvas> fCanvas; |
80 SkScalar fRasterDpi; | 81 SkScalar fRasterDpi; |
81 SkPDFMetadata fMetadata; | 82 SkPDFMetadata fMetadata; |
82 }; | 83 }; |
83 | 84 |
84 #endif // SkPDFDocument_DEFINED | 85 #endif // SkPDFDocument_DEFINED |
OLD | NEW |