Index: src/pdf/SkPDFDocument.h |
diff --git a/src/pdf/SkPDFDocument.h b/src/pdf/SkPDFDocument.h |
index da14e8d60ecdc07e62c65828664f99792dff6097..f5e8a11d842860d0bac4e832bee81a2e7a69fe4f 100644 |
--- a/src/pdf/SkPDFDocument.h |
+++ b/src/pdf/SkPDFDocument.h |
@@ -18,7 +18,8 @@ sk_sp<SkDocument> SkPDFMakeDocument( |
SkWStream* stream, |
void (*doneProc)(SkWStream*, bool), |
SkScalar rasterDpi, |
- SkPixelSerializer* jpegEncoder); |
+ SkPixelSerializer* jpegEncoder, |
+ bool pdfa); |
// Logically part of SkPDFDocument (like SkPDFCanon), but separate to |
// keep similar functionality together. |
@@ -47,7 +48,8 @@ public: |
SkPDFDocument(SkWStream*, |
void (*)(SkWStream*, bool), |
SkScalar, |
- SkPixelSerializer*); |
+ SkPixelSerializer*, |
+ bool); |
virtual ~SkPDFDocument(); |
SkCanvas* onBeginPage(SkScalar, SkScalar, const SkRect&) override; |
void onEndPage() override; |
@@ -79,12 +81,11 @@ private: |
sk_sp<SkPDFDict> fDests; |
sk_sp<SkPDFDevice> fPageDevice; |
sk_sp<SkCanvas> fCanvas; |
- #ifdef SK_PDF_GENERATE_PDFA |
sk_sp<SkPDFObject> fID; |
sk_sp<SkPDFObject> fXMP; |
- #endif |
SkScalar fRasterDpi; |
SkPDFMetadata fMetadata; |
+ bool fPDFA; |
}; |
#endif // SkPDFDocument_DEFINED |