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

Unified Diff: src/pdf/SkPDFDocument.h

Issue 1891873002: SkPDF: PDF/A runtime switch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-21 (Thursday) 16:21:36 EDT Created 4 years, 8 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
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/pdf/SkPDFDevice.cpp ('k') | src/pdf/SkPDFDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698