OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 SkPDFDevice_DEFINED | 10 #ifndef SkPDFDevice_DEFINED |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 class SkPDFArray; | 25 class SkPDFArray; |
26 class SkPDFCanon; | 26 class SkPDFCanon; |
27 class SkPDFDevice; | 27 class SkPDFDevice; |
28 class SkPDFDict; | 28 class SkPDFDict; |
29 class SkPDFFont; | 29 class SkPDFFont; |
30 class SkPDFFormXObject; | 30 class SkPDFFormXObject; |
31 class SkPDFGlyphSetMap; | 31 class SkPDFGlyphSetMap; |
32 class SkPDFGraphicState; | 32 class SkPDFGraphicState; |
33 class SkPDFObject; | 33 class SkPDFObject; |
34 class SkPDFResourceDict; | |
35 class SkPDFShader; | 34 class SkPDFShader; |
36 class SkPDFStream; | 35 class SkPDFStream; |
37 class SkRRect; | 36 class SkRRect; |
38 | 37 |
39 // Private classes. | 38 // Private classes. |
40 struct ContentEntry; | 39 struct ContentEntry; |
41 struct GraphicStateEntry; | 40 struct GraphicStateEntry; |
42 struct NamedDestination; | 41 struct NamedDestination; |
43 | 42 |
44 /** \class SkPDFDevice | 43 /** \class SkPDFDevice |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 * mode is used, like SrcIn, Clear, etc, the margin content will get | 131 * mode is used, like SrcIn, Clear, etc, the margin content will get |
133 * clipped. A simple way to avoid the bug is to always draw the margin | 132 * clipped. A simple way to avoid the bug is to always draw the margin |
134 * content last. | 133 * content last. |
135 */ | 134 */ |
136 void setDrawingArea(DrawingArea drawingArea); | 135 void setDrawingArea(DrawingArea drawingArea); |
137 | 136 |
138 // PDF specific methods. | 137 // PDF specific methods. |
139 | 138 |
140 /** Create the resource dictionary for this device. | 139 /** Create the resource dictionary for this device. |
141 */ | 140 */ |
142 SkPDFResourceDict* createResourceDict() const; | 141 SkPDFDict* createResourceDict() const; |
143 | 142 |
144 /** Get the fonts used on this device. | 143 /** Get the fonts used on this device. |
145 */ | 144 */ |
146 const SkTDArray<SkPDFFont*>& getFontResources() const; | 145 const SkTDArray<SkPDFFont*>& getFontResources() const; |
147 | 146 |
148 /** Add our named destinations to the supplied dictionary. | 147 /** Add our named destinations to the supplied dictionary. |
149 * @param dict Dictionary to add destinations to. | 148 * @param dict Dictionary to add destinations to. |
150 * @param page The PDF object representing the page for this device. | 149 * @param page The PDF object representing the page for this device. |
151 */ | 150 */ |
152 void appendDestinations(SkPDFDict* dict, SkPDFObject* page) const; | 151 void appendDestinations(SkPDFDict* dict, SkPDFObject* page) const; |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 309 |
311 typedef SkBaseDevice INHERITED; | 310 typedef SkBaseDevice INHERITED; |
312 | 311 |
313 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 312 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
314 // an SkPDFDevice | 313 // an SkPDFDevice |
315 //friend class SkDocument_PDF; | 314 //friend class SkDocument_PDF; |
316 //friend class SkPDFImageShader; | 315 //friend class SkPDFImageShader; |
317 }; | 316 }; |
318 | 317 |
319 #endif | 318 #endif |
OLD | NEW |