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 * | 22 * |
23 * Output the PDF to the passed stream. It is an error to call this (it | 23 * Output the PDF to the passed stream. It is an error to call this (it |
24 * will return false and not modify stream) if pageDevices is empty. | 24 * will return false and not modify stream) if pageDevices is empty. |
25 * No device pointer can be NULL. | 25 * No device pointer can be NULL. |
26 * | 26 * |
27 * @param pageDevices An array of pages, in order. All pages | 27 * @param pageDevices An array of pages, in order. All pages |
28 * should be created using the same SkPDFCanon. | 28 * should be created using the same SkPDFCanon. |
29 * TODO(halcanary): ASSERT this condition. | 29 * TODO(halcanary): ASSERT this condition. |
30 * @param SkWStream The writable output stream to send the PDF to. | 30 * @param SkWStream The writable output stream to send the PDF to. |
31 */ | 31 */ |
32 bool EmitPDF(const SkTDArray<SkPDFDevice*>& pageDevices, SkWStream*); | 32 bool EmitPDF(const SkTDArray<const SkPDFDevice*>& pageDevices, SkWStream*); |
33 | 33 |
34 /** Get the count of unique font types used in the given pages. | 34 /** Get the count of unique font types used in the given pages. |
35 */ | 35 */ |
36 void GetCountOfFontTypes(const SkTDArray<SkPDFDevice*>& pageDevices, | 36 void GetCountOfFontTypes(const SkTDArray<SkPDFDevice*>& pageDevices, |
37 int counts[SkAdvancedTypefaceMetrics::kOther_Font + 1], | 37 int counts[SkAdvancedTypefaceMetrics::kOther_Font + 1], |
38 int* notSubsettableCount, | 38 int* notSubsettableCount, |
39 int* notEmbedddableCount); | 39 int* notEmbedddableCount); |
40 } | 40 } |
41 | 41 |
42 #endif | 42 #endif |
OLD | NEW |