| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfSoftMaskImageDictionary | 1 #ifndef __DEFINED__SkPdfSoftMaskImageDictionary |
| 2 #define __DEFINED__SkPdfSoftMaskImageDictionary | 2 #define __DEFINED__SkPdfSoftMaskImageDictionary |
| 3 | 3 |
| 4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
| 5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
| 6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
| 7 #include "SkPdfDictionary_autogen.h" | 7 #include "SkPdfDictionary_autogen.h" |
| 8 | 8 |
| 9 // Additional entry in a soft-mask image dictionary | 9 // Additional entry in a soft-mask image dictionary |
| 10 class SkPdfSoftMaskImageDictionary : public SkPdfDictionary { | 10 class SkPdfSoftMaskImageDictionary : public SkPdfDictionary { |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 * which the image data in the parent image has been preblended. The array cons
ists of n | 529 * which the image data in the parent image has been preblended. The array cons
ists of n |
| 530 * numbers, where n is the number of components in the color space specified by
the | 530 * numbers, where n is the number of components in the color space specified by
the |
| 531 * ColorSpace entry in the parent image's image dictionary; the numbers must be
valid | 531 * ColorSpace entry in the parent image's image dictionary; the numbers must be
valid |
| 532 * color components in that color space. If this entry is absent, the image dat
a is not pre- | 532 * color components in that color space. If this entry is absent, the image dat
a is not pre- |
| 533 * blended. | 533 * blended. |
| 534 **/ | 534 **/ |
| 535 bool has_Matte() const { | 535 bool has_Matte() const { |
| 536 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matte
", "", NULL)); | 536 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matte
", "", NULL)); |
| 537 } | 537 } |
| 538 | 538 |
| 539 SkPdfArray* Matte() const { | 539 SkPdfArray* Matte() const; |
| 540 SkPdfArray* ret; | |
| 541 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matte", ""
, &ret)) return ret; | |
| 542 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 543 return NULL; | |
| 544 } | |
| 545 | |
| 546 }; | 540 }; |
| 547 | 541 |
| 548 #endif // __DEFINED__SkPdfSoftMaskImageDictionary | 542 #endif // __DEFINED__SkPdfSoftMaskImageDictionary |
| OLD | NEW |