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

Unified Diff: printing/pdf_metafile_skia.cc

Issue 2920013002: Use pdf compositor service for printing when OOPIF is enabled
Patch Set: rebase Created 3 years, 4 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
Index: printing/pdf_metafile_skia.cc
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc
index 2e3b07b2c3c6b78c01ef787477d1073019038e59..0bcb3cdb50b6365454d180ec5072e2b6972654e1 100644
--- a/printing/pdf_metafile_skia.cc
+++ b/printing/pdf_metafile_skia.cc
@@ -161,10 +161,10 @@ bool PdfMetafileSkia::FinishDocument() {
SkDynamicMemoryWStream stream;
sk_sp<SkDocument> doc;
switch (data_->type_) {
- case PDF_SKIA_DOCUMENT_TYPE:
+ case SkiaDocumentType::PDF:
doc = MakePdfDocument(printing::GetAgent(), &stream);
break;
- case MSKP_SKIA_DOCUMENT_TYPE:
+ case SkiaDocumentType::MSKP:
doc = SkMakeMultiPictureDocument(&stream);
break;
}
« printing/common/pdf_metafile_utils.h ('K') | « printing/common/pdf_metafile_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698