Revert of printing::Metafile: Simplify OS_MACOSX-specific code path (patchset #3 id:40001 of https://codereview.chromium.org/2802093006/ )
Reason for revert:
Likely causing https://crbug.com/712309
Original issue's description:
> printing::Metafile: Simplify OS_MACOSX-specific code path
>
> - printing::Metafile
> * move MacRenderPageParams to PdfMetafileCg
> * remove virtual RenderPage()
> - printing::PdfMetafileCg
> * Add MacRenderPageParams
> * RenderPage no longer an override
> - printing::PdfMetafileSkia
> * no longer implment RenderPage()
> * code moved to printing::PrintedDocument::RenderPrintedPage()
>
> This will help isolate BUG=chromium:374359
>
> R=thestig@chromium.org
>
> Review-Url: https://codereview.chromium.org/2802093006
> Cr-Commit-Position: refs/heads/master@{#463828}
> Committed: https://chromium.googlesource.com/chromium/src/+/c843c89f3051e4b01cf032e52c478000f7ded0ee
TBR=halcanary@google.com
# Not skipping CQ checks because original CL landed more than 1 days ago.
Review-Url: https://codereview.chromium.org/2839323002
Cr-Commit-Position: refs/heads/master@{#467568}
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h
index e27da152..948e27f 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -57,6 +57,11 @@
bool Playback(skia::NativeDrawingContext hdc,
const RECT* rect) const override;
bool SafePlayback(skia::NativeDrawingContext hdc) const override;
+#elif defined(OS_MACOSX)
+ bool RenderPage(unsigned int page_number,
+ skia::NativeDrawingContext context,
+ const CGRect rect,
+ const MacRenderPageParams& params) const override;
#endif
bool SaveTo(base::File* file) const override;