| Index: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfJbig2DecodeFilterDictionary_autogen.cpp
|
| ===================================================================
|
| --- experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfJbig2DecodeFilterDictionary_autogen.cpp (revision 0)
|
| +++ experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfJbig2DecodeFilterDictionary_autogen.cpp (revision 0)
|
| @@ -0,0 +1,16 @@
|
| +#include "SkPdfJbig2DecodeFilterDictionary_autogen.h"
|
| +
|
| +
|
| +#include "SkPdfNativeDoc.h"
|
| +SkPdfStream* SkPdfJbig2DecodeFilterDictionary::JBIG2Globals(SkPdfNativeDoc* doc) {
|
| + SkPdfNativeObject* ret = get("JBIG2Globals", "");
|
| + if (doc) {ret = doc->resolveReference(ret);}
|
| + if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->getStream();
|
| + // TODO(edisonn): warn about missing default value for optional fields
|
| + return NULL;
|
| +}
|
| +
|
| +bool SkPdfJbig2DecodeFilterDictionary::has_JBIG2Globals() const {
|
| + return get("JBIG2Globals", "") != NULL;
|
| +}
|
| +
|
|
|