OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 | 7 |
8 #ifndef SkPdfNativeDoc_DEFINED | 8 #ifndef SkPdfNativeDoc_DEFINED |
9 #define SkPdfNativeDoc_DEFINED | 9 #define SkPdfNativeDoc_DEFINED |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Used to break a recursive reference to itself. | 62 // Used to break a recursive reference to itself. |
63 bool fIsReferenceResolved; | 63 bool fIsReferenceResolved; |
64 }; | 64 }; |
65 | 65 |
66 public: | 66 public: |
67 // TODO(edisonn) should be deprecated | 67 // TODO(edisonn) should be deprecated |
68 SkPdfNativeDoc(const char* path); | 68 SkPdfNativeDoc(const char* path); |
69 | 69 |
70 // TODO(edisonn) should be deprecated | 70 // TODO(edisonn) should be deprecated |
71 // FIXME: Untested. | 71 // FIXME: Untested. |
| 72 // Does not affect ownership of stream. |
72 SkPdfNativeDoc(SkStream* stream); | 73 SkPdfNativeDoc(SkStream* stream); |
73 | 74 |
74 ~SkPdfNativeDoc(); | 75 ~SkPdfNativeDoc(); |
75 | 76 |
76 // returns the number of pages in the pdf | 77 // returns the number of pages in the pdf |
77 int pages() const; | 78 int pages() const; |
78 | 79 |
79 // returns the page resources | 80 // returns the page resources |
80 SkPdfResourceDictionary* pageResources(int page); | 81 SkPdfResourceDictionary* pageResources(int page); |
81 | 82 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 const unsigned char* fFileContent; | 151 const unsigned char* fFileContent; |
151 size_t fContentLength; | 152 size_t fContentLength; |
152 SkPdfNativeObject* fRootCatalogRef; | 153 SkPdfNativeObject* fRootCatalogRef; |
153 SkPdfCatalogDictionary* fRootCatalog; | 154 SkPdfCatalogDictionary* fRootCatalog; |
154 | 155 |
155 mutable SkTDArray<PublicObjectEntry> fObjects; | 156 mutable SkTDArray<PublicObjectEntry> fObjects; |
156 SkTDArray<SkPdfPageObjectDictionary*> fPages; | 157 SkTDArray<SkPdfPageObjectDictionary*> fPages; |
157 }; | 158 }; |
158 | 159 |
159 #endif // SkPdfNativeDoc_DEFINED | 160 #endif // SkPdfNativeDoc_DEFINED |
OLD | NEW |