aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFMetadata.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-04-15 12:30:21 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-15 12:30:21 -0700
commit2299ffaaa1ddf524e35a04bdf6b2ed3cfe202b77 (patch)
tree37cf708f3892cd0888ca65a1eebda28ffe8a45f5 /src/pdf/SkPDFMetadata.cpp
parent570f18b43417d73c3fbd113cc0b4258e08b14c82 (diff)
Revert of SkPDF: PDF/A runtime switch (patchset #1 id:100001 of https://codereview.chromium.org/1891873002/ )
Reason for revert: breaking something. Original issue's description: > SkPDF: PDF/A runtime switch > > TODO: remove gyp variable and modify API in SkDocument.h > > BUG=skia:3110 > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1891873002 > > Committed: https://skia.googlesource.com/skia/+/570f18b43417d73c3fbd113cc0b4258e08b14c82 TBR=tomhudson@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia:3110 Review URL: https://codereview.chromium.org/1892203002
Diffstat (limited to 'src/pdf/SkPDFMetadata.cpp')
-rw-r--r--src/pdf/SkPDFMetadata.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pdf/SkPDFMetadata.cpp b/src/pdf/SkPDFMetadata.cpp
index 2765d4d189..a5476a2df0 100644
--- a/src/pdf/SkPDFMetadata.cpp
+++ b/src/pdf/SkPDFMetadata.cpp
@@ -5,12 +5,15 @@
* found in the LICENSE file.
*/
-#include "SkMD5.h"
#include "SkMilestone.h"
#include "SkPDFMetadata.h"
#include "SkPDFTypes.h"
#include <utility>
+#ifdef SK_PDF_GENERATE_PDFA
+#include "SkMD5.h"
+#endif
+
static SkString pdf_date(const SkTime::DateTime& dt) {
int timeZoneMinutes = SkToInt(dt.fTimeZoneMinutes);
char timezoneSign = timeZoneMinutes >= 0 ? '+' : '-';
@@ -49,6 +52,7 @@ SkPDFObject* SkPDFMetadata::createDocumentInformationDict() const {
return dict.release();
}
+#ifdef SK_PDF_GENERATE_PDFA
SkPDFMetadata::UUID SkPDFMetadata::uuid() const {
// The main requirement is for the UUID to be unique; the exact
// format of the data that will be hashed is not important.
@@ -346,6 +350,8 @@ SkPDFObject* SkPDFMetadata::createXMPObject(const UUID& doc,
documentID.c_str(), instanceID.c_str(), keywords2.c_str()));
}
+#endif // SK_PDF_GENERATE_PDFA
+
#undef SKPDF_STRING
#undef SKPDF_STRING_IMPL