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

Unified Diff: experimental/PdfViewer/SkPdfType2FunctionDictionary_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/SkPdfType2FunctionDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfType2FunctionDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfType2FunctionDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entries specific to a type 2 function dictionary
class SkPdfType2FunctionDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kType2FunctionDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfType2FunctionDictionary& operator=(const SkPdfType2FunctionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Optional) An array of n numbers defining the function result when x = 0.0 (hence the "0"
+ * in the name). Default value: [0.0].
+**/
+ bool has_C0() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C0", "", NULL));
+ }
+
SkPdfArray C0() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C0", "", &ret)) return ret;
@@ -528,6 +536,13 @@
return SkPdfArray();
}
+/** (Optional) An array of n numbers defining the function result when x = 1.0 (hence the "1"
+ * in the name). Default value: [1.0].
+**/
+ bool has_C1() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C1", "", NULL));
+ }
+
SkPdfArray C1() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C1", "", &ret)) return ret;
@@ -535,6 +550,13 @@
return SkPdfArray();
}
+/** (Required) The interpolation exponent. Each input value x will return n values, given by
+ * yj = C0j + xN x (C1j - C0j ), for 0 <= j < n.
+**/
+ bool has_N() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", NULL));
+ }
+
double N() const {
double ret;
if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698