| Index: webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| index 9809fdf71978968d89bc5cf8bcd0059e0bf196f7..986d72445455577d027b66c4362b7dd46106002e 100644
|
| --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| @@ -1062,7 +1062,7 @@ bool PluginInstance::PrintPDFOutput(PP_Resource print_output,
|
| #endif // defined(OS_WIN)
|
|
|
| bool ret = false;
|
| -#if defined(OS_LINUX)
|
| +#if defined(OS_LINUX) || (defined(OS_MACOSX) && defined(USE_SKIA))
|
| // 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).
|
| @@ -1075,13 +1075,8 @@ bool PluginInstance::PrintPDFOutput(PP_Resource print_output,
|
| printing::NativeMetafile metafile;
|
| // Create a PDF metafile and render from there into the passed in context.
|
| if (metafile.InitFromData(mapper.data(), mapper.size())) {
|
| - // Flip the transform.
|
| -#if defined(USE_SKIA)
|
| - gfx::SkiaBitLocker bit_locker(canvas);
|
| - CGContextRef cgContext = bit_locker.cgContext();
|
| -#else
|
| + // Flip the transform.
|
| CGContextRef cgContext = canvas;
|
| -#endif
|
| CGContextSaveGState(cgContext);
|
| CGContextTranslateCTM(cgContext, 0,
|
| current_print_settings_.printable_area.size.height);
|
|
|