| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfBasics | 1 #ifndef __DEFINED__SkPdfBasics |
| 2 #define __DEFINED__SkPdfBasics | 2 #define __DEFINED__SkPdfBasics |
| 3 | 3 |
| 4 #include "SkCanvas.h" | 4 #include "SkCanvas.h" |
| 5 #include "SkPaint.h" | 5 #include "SkPaint.h" |
| 6 #include "SkPdfConfig.h" | 6 #include "SkPdfConfig.h" |
| 7 | 7 |
| 8 #include <iostream> | 8 #include <iostream> |
| 9 #include <cstdio> | 9 #include <cstdio> |
| 10 #include <map> | 10 #include <map> |
| 11 #include <stack> | 11 #include <stack> |
| 12 | 12 |
| 13 class SkPdfFont; | 13 class SkPdfFont; |
| 14 class SkPdfDoc; | 14 class SkPdfDoc; |
| 15 class SkPdfObject; | 15 class SkPdfObject; |
| 16 class SkPdfResourceDictionary; | 16 class SkPdfResourceDictionary; |
| 17 class SkPdfSoftMaskDictionary; |
| 17 | 18 |
| 18 class SkNativeParsedPDF; | 19 class SkNativeParsedPDF; |
| 19 class SkPdfAllocator; | 20 class SkPdfAllocator; |
| 20 | 21 |
| 21 // TODO(edisonn): better class design. | 22 // TODO(edisonn): better class design. |
| 22 struct SkPdfColorOperator { | 23 struct SkPdfColorOperator { |
| 23 | 24 |
| 24 /* | 25 /* |
| 25 color space name or array The current color space in which color value
s are to be interpreted | 26 color space name or array The current color space in which color value
s are to be interpreted |
| 26 (see Section 4.5, “Color Spaces”). There are
two separate color space | 27 (see Section 4.5, “Color Spaces”). There are
two separate color space |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 /* | 196 /* |
| 196 soft mask dictionary (PDF 1.4) A soft-mask dictionary (see “Soft-Mask
Dictionaries” on | 197 soft mask dictionary (PDF 1.4) A soft-mask dictionary (see “Soft-Mask
Dictionaries” on |
| 197 or name page 445) specifying the mask shape or mask opac
ity values to be | 198 or name page 445) specifying the mask shape or mask opac
ity values to be |
| 198 used in the transparent imaging model (see “Sour
ce Shape and | 199 used in the transparent imaging model (see “Sour
ce Shape and |
| 199 Opacity” on page 421 and “Mask Shape and Opacity
” on page 443), | 200 Opacity” on page 421 and “Mask Shape and Opacity
” on page 443), |
| 200 or the name None if no such mask is specified. Th
is parameter is | 201 or the name None if no such mask is specified. Th
is parameter is |
| 201 implicitly reset to its initial value at the beg
inning of execution of a | 202 implicitly reset to its initial value at the beg
inning of execution of a |
| 202 transparency group XObject (see Section 7.5.5, “
Transparency | 203 transparency group XObject (see Section 7.5.5, “
Transparency |
| 203 Group XObjects”). Initial value: None. | 204 Group XObjects”). Initial value: None. |
| 204 */ | 205 */ |
| 205 SkBitmap fSMask; | 206 SkPdfSoftMaskDictionary* fSoftMaskDictionary; |
| 207 SkBitmap fSMask; |
| 206 | 208 |
| 207 | 209 |
| 208 /* | 210 /* |
| 209 alpha constant number (PDF 1.4) The constant shape or constant opacity
value to be used | 211 alpha constant number (PDF 1.4) The constant shape or constant opacity
value to be used |
| 210 in the transparent imaging model (see “Source Sh
ape and Opacity” | 212 in the transparent imaging model (see “Source Sh
ape and Opacity” |
| 211 on page 421 and “Constant Shape and Opacity” on
page 444). | 213 on page 421 and “Constant Shape and Opacity” on
page 444). |
| 212 There are two separate alpha constant parameters
: one for stroking | 214 There are two separate alpha constant parameters
: one for stroking |
| 213 and one for all other painting operations. This
parameter is implic- | 215 and one for all other painting operations. This
parameter is implic- |
| 214 itly reset to its initial value at the beginning
of execution of a trans- | 216 itly reset to its initial value at the beginning
of execution of a trans- |
| 215 parency group XObject (see Section 7.5.5, “Trans
parency Group | 217 parency group XObject (see Section 7.5.5, “Trans
parency Group |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 kPartial_PdfResult, | 370 kPartial_PdfResult, |
| 369 kNYI_PdfResult, | 371 kNYI_PdfResult, |
| 370 kIgnoreError_PdfResult, | 372 kIgnoreError_PdfResult, |
| 371 kError_PdfResult, | 373 kError_PdfResult, |
| 372 kUnsupported_PdfResult, | 374 kUnsupported_PdfResult, |
| 373 | 375 |
| 374 kCount_PdfResult | 376 kCount_PdfResult |
| 375 }; | 377 }; |
| 376 | 378 |
| 377 #endif // __DEFINED__SkPdfBasics | 379 #endif // __DEFINED__SkPdfBasics |
| OLD | NEW |