diff options
Diffstat (limited to 'printing/metafile_impl.h')
-rw-r--r-- | printing/metafile_impl.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/printing/metafile_impl.h b/printing/metafile_impl.h index d25481d..a40e9b1 100644 --- a/printing/metafile_impl.h +++ b/printing/metafile_impl.h @@ -7,11 +7,13 @@ #if defined(OS_WIN) #include "printing/emf_win.h" -#include "printing/pdf_metafile_skia.h" #elif defined(OS_MACOSX) #include "printing/pdf_metafile_cg_mac.h" #elif defined(OS_POSIX) #include "printing/pdf_metafile_cairo_linux.h" +#endif + +#if !defined(OS_MACOSX) || defined(USE_SKIA) #include "printing/pdf_metafile_skia.h" #endif @@ -21,8 +23,13 @@ namespace printing { typedef Emf NativeMetafile; typedef PdfMetafileSkia PreviewMetafile; #elif defined(OS_MACOSX) +#if defined(USE_SKIA) +typedef PdfMetafileSkia NativeMetafile; +typedef PdfMetafileSkia PreviewMetafile; +#else typedef PdfMetafileCg NativeMetafile; typedef PdfMetafileCg PreviewMetafile; +#endif #elif defined(OS_POSIX) typedef PdfMetafileCairo NativeMetafile; typedef PdfMetafileSkia PreviewMetafile; |