Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfSoftMaskImageDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698