OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
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 | 7 |
8 | 8 |
9 #ifndef SkPDFFormXObject_DEFINED | 9 #ifndef SkPDFFormXObject_DEFINED |
10 #define SkPDFFormXObject_DEFINED | 10 #define SkPDFFormXObject_DEFINED |
(...skipping 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 /** Create a PDF form XObject. Entries for the dictionary entries are | 34 /** Create a PDF form XObject. Entries for the dictionary entries are |
35 * automatically added. | 35 * automatically added. |
36 * @param device The set of graphical elements on this form. | 36 * @param device The set of graphical elements on this form. |
37 */ | 37 */ |
38 explicit SkPDFFormXObject(SkPDFDevice* device); | 38 explicit SkPDFFormXObject(SkPDFDevice* device); |
39 /** | 39 /** |
40 * Create a PDF form XObject from a raw content stream and associated | 40 * Create a PDF form XObject from a raw content stream and associated |
41 * resources. | 41 * resources. |
42 */ | 42 */ |
43 explicit SkPDFFormXObject(SkStream* content, | 43 explicit SkPDFFormXObject(SkStreamAsset* content, |
44 SkRect bbox, | 44 SkRect bbox, |
45 SkPDFDict* resourceDict); | 45 SkPDFDict* resourceDict); |
46 virtual ~SkPDFFormXObject(); | 46 virtual ~SkPDFFormXObject(); |
47 | 47 |
48 private: | 48 private: |
49 void init(const char* colorSpace, | 49 void init(const char* colorSpace, |
50 SkPDFDict* resourceDict, SkPDFArray* bbox); | 50 SkPDFDict* resourceDict, SkPDFArray* bbox); |
51 }; | 51 }; |
52 | 52 |
53 #endif | 53 #endif |
OLD | NEW |