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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 516833002: Removed NativeMetafile and PreviewMetafile typedef as it's always PdfMetafileSkia. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_pdf
Patch Set: Thu Aug 28 02:43:23 PDT 2014 Created 6 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: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index b9170f4cfb29cc8997efb2bc932321ac8d741c2f..ded5327fdaf4281c12b7d8b5d61c623aa453f631 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -133,7 +133,7 @@
#endif
#if defined(OS_MACOSX)
-#include "printing/metafile_impl.h"
+#include "printing/pdf_metafile_skia.h"
#endif // defined(OS_MACOSX)
#if defined(OS_WIN)
@@ -1951,9 +1951,6 @@ bool PepperPluginInstanceImpl::PrintPDFOutput(PP_Resource print_output,
bool ret = false;
#if defined(OS_POSIX) && !defined(OS_ANDROID)
- // On Linux we just set the final bits in the native metafile
- // (NativeMetafile and PreviewMetafile must have compatible formats,
- // i.e. both PDF for this to work).
printing::Metafile* metafile =
printing::MetafileSkiaWrapper::GetMetafileFromCanvas(*canvas);
DCHECK(metafile != NULL);

Powered by Google App Engine
This is Rietveld 408576698