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

Unified Diff: src/pdf/SkPDFDocument.cpp

Issue 2299653002: SkDocument: turn off SK_SUPPORT_LEGACY_DOCUMENT_API (Closed)
Patch Set: delete all LEGACY_DOCUMENT_API Created 4 years, 3 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/SkPDFDocument.h ('k') | src/pdf/SkPDFMetadata.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pdf/SkPDFDocument.cpp
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp
index 6122dbd56573e26ec12bde528c8e915c4dbc4cad..8734927901d4bcfae4db275376dbaf47067bed25 100644
--- a/src/pdf/SkPDFDocument.cpp
+++ b/src/pdf/SkPDFDocument.cpp
@@ -256,26 +256,6 @@ void SkPDFDocument::reset() {
fFonts.reset();
}
-#ifdef SK_SUPPORT_LEGACY_DOCUMENT_API
-void SkPDFDocument::setMetadata(const SkDocument::Attribute info[],
- int infoCount,
- const SkTime::DateTime* creationDate,
- const SkTime::DateTime* modifiedDate) {
- for (int i = 0; i < infoCount; ++i) {
- const SkDocument::Attribute& kv = info[i];
- SkPDFMetadata::SetMetadataByKey(kv.fKey, kv.fValue, &fMetadata);
- }
- if (creationDate) {
- fMetadata.fCreation.fEnabled = true;
- fMetadata.fCreation.fDateTime = *creationDate;
- }
- if (modifiedDate) {
- fMetadata.fModified.fEnabled = true;
- fMetadata.fModified.fDateTime = *modifiedDate;
- }
-}
-#endif // SK_SUPPORT_LEGACY_DOCUMENT_API
-
static sk_sp<SkData> SkSrgbIcm() {
// Source: http://www.argyllcms.com/icclibsrc.html
static const char kProfile[] =
« no previous file with comments | « src/pdf/SkPDFDocument.h ('k') | src/pdf/SkPDFMetadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698