Index: experimental/PdfViewer/autogen/SkPdfType4ShadingDictionary_autogen.h |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfType4ShadingDictionary_autogen.h (revision 9765) |
+++ experimental/PdfViewer/autogen/SkPdfType4ShadingDictionary_autogen.h (working copy) |
@@ -49,13 +49,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", NULL)); |
} |
- long BitsPerCoordinate() const { |
- long ret; |
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerCoordinate", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
- } |
- |
+ long BitsPerCoordinate() const; |
/** (Required) The number of bits used to represent each color component. |
* Valid values are 1, 2, 4, 8, 12, and 16. |
**/ |
@@ -63,13 +57,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", NULL)); |
} |
- long BitsPerComponent() const { |
- long ret; |
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerComponent", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
- } |
- |
+ long BitsPerComponent() const; |
/** (Required) The number of bits used to represent the edge flag for each ver- |
* tex (see below). Valid values of BitsPerFlag are 2, 4, and 8, but only the |
* least significant 2 bits in each flag value are used. Valid values for the edge |
@@ -79,13 +67,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerFlag", "", NULL)); |
} |
- long BitsPerFlag() const { |
- long ret; |
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BitsPerFlag", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
- } |
- |
+ long BitsPerFlag() const; |
/** (Required) An array of numbers specifying how to map vertex coordinates |
* and color components into the appropriate ranges of values. The de- |
* coding method is similar to that used in image dictionaries (see "Decode |
@@ -98,13 +80,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", NULL)); |
} |
- SkRect* Decode() const { |
- SkRect* ret; |
- if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Decode", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
- } |
- |
+ SkRect* Decode() const; |
/** (Optional) A 1-in, n-out function or an array of n 1-in, 1-out functions |
* (where n is the number of color components in the shading dictionary's |
* color space). If this entry is present, the color data for each vertex must be |
@@ -122,13 +98,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", NULL)); |
} |
- SkPdfFunction Function() const { |
- SkPdfFunction ret; |
- if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Function", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return SkPdfFunction(); |
- } |
- |
+ SkPdfFunction Function() const; |
}; |
#endif // __DEFINED__SkPdfType4ShadingDictionary |