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

Unified Diff: printing/pdf_metafile_cg_mac.cc

Issue 2835193007: Revert of clean up printing::Image and printing::Metafile (Closed)
Patch Set: Created 3 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 | « printing/pdf_metafile_cg_mac.h ('k') | printing/pdf_metafile_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/pdf_metafile_cg_mac.cc
diff --git a/printing/pdf_metafile_cg_mac.cc b/printing/pdf_metafile_cg_mac.cc
index f6a53f5552cfe8716bf826df123d09b88aacde53..898e795010052ebe85a5d8bc7bfde2fb6024fe09 100644
--- a/printing/pdf_metafile_cg_mac.cc
+++ b/printing/pdf_metafile_cg_mac.cc
@@ -174,15 +174,7 @@
LOG(ERROR) << "Unable to initialize PDF document from data";
return false;
}
- return metafile.OnRenderPage(page_number, context, rect, params);
-}
-
-bool PdfMetafileCg::OnRenderPage(
- unsigned int page_number,
- CGContextRef context,
- const CGRect rect,
- const PdfMetafileCg::RenderPageParams& params) {
- CGPDFDocumentRef pdf_doc = GetPDFDocument();
+ CGPDFDocumentRef pdf_doc = metafile.GetPDFDocument();
if (!pdf_doc) {
LOG(ERROR) << "Unable to create PDF document from data";
return false;
« no previous file with comments | « printing/pdf_metafile_cg_mac.h ('k') | printing/pdf_metafile_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698