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

Unified Diff: experimental/PdfViewer/SkPdfSoftMaskImageDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (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 side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfSoftMaskImageDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfSoftMaskImageDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfSoftMaskImageDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entry in a soft-mask image dictionary
class SkPdfSoftMaskImageDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kSoftMaskImageDictionary_SkPdfObjectType;}
@@ -521,6 +522,17 @@
SkPdfSoftMaskImageDictionary& operator=(const SkPdfSoftMaskImageDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional; PDF 1.4) An array of component values specifying the matte color with
+ * which the image data in the parent image has been preblended. The array consists of n
+ * numbers, where n is the number of components in the color space specified by the
+ * ColorSpace entry in the parent image's image dictionary; the numbers must be valid
+ * color components in that color space. If this entry is absent, the image data is not pre-
+ * blended.
+**/
+ bool has_Matte() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matte", "", NULL));
+ }
+
SkPdfArray Matte() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matte", "", &ret)) return ret;
« no previous file with comments | « experimental/PdfViewer/SkPdfSoftMaskDictionary_autogen.h ('k') | experimental/PdfViewer/SkPdfSoundActionDictionary_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698