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

Unified Diff: src/pdf/SkPDFMetadata.cpp

Issue 1781673002: Skia minor version tracks milestone release branch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-03-09 (Wednesday) 11:54:09 EST Created 4 years, 9 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 | « include/core/SkTypes.h ('k') | tests/PDFMetadataAttributeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFMetadata.cpp
diff --git a/src/pdf/SkPDFMetadata.cpp b/src/pdf/SkPDFMetadata.cpp
index 5e8c124d7b6cb5d3351d4f095710ffd83fc061c0..b70446d43e6925070ecd0389efa890f5283cb469 100644
--- a/src/pdf/SkPDFMetadata.cpp
+++ b/src/pdf/SkPDFMetadata.cpp
@@ -26,6 +26,8 @@ static SkString pdf_date(const SkTime::DateTime& dt) {
static_cast<unsigned>(dt.fSecond), timezoneSign, timeZoneHours,
timeZoneMinutes);
}
+#define SKPDF_STRING(X) SKPDF_STRING_IMPL(X)
+#define SKPDF_STRING_IMPL(X) #X
SkPDFObject* SkPDFMetadata::createDocumentInformationDict() const {
auto dict = sk_make_sp<SkPDFDict>();
@@ -38,7 +40,7 @@ SkPDFObject* SkPDFMetadata::createDocumentInformationDict() const {
}
}
}
- dict->insertString("Producer", "Skia/PDF");
+ dict->insertString("Producer", "Skia/PDF m" SKPDF_STRING(SKIA_MILESTONE));
if (fCreation) {
dict->insertString("CreationDate", pdf_date(*fCreation.get()));
}
« no previous file with comments | « include/core/SkTypes.h ('k') | tests/PDFMetadataAttributeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698