blob: 8239e3a01bc75dd1fd0e0bce10878d4a651c3ac0 [file] [log] [blame]
/*
* Copyright 2013 Google Inc.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#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;
}