Index: printing/pdf_ps_metafile_cairo.cc |
diff --git a/printing/pdf_ps_metafile_cairo.cc b/printing/pdf_ps_metafile_cairo.cc |
index faab29f4730ba1e2ac737fe18b7cd27f004ae539..d3c3ec69157e30edc99cbd41a11b8e1ea5d6756a 100644 |
--- a/printing/pdf_ps_metafile_cairo.cc |
+++ b/printing/pdf_ps_metafile_cairo.cc |
@@ -144,6 +144,19 @@ bool PdfPsMetafile::SetRawData(const void* src_buffer, |
return true; |
} |
+skia::PlatformDevice* PdfPsMetafile::StartPageForVectorCanvas( |
+ const gfx::Size& page_size, const gfx::Point& content_origin, |
+ const float& scale_factor) { |
+ DCHECK_EQ(1.0f, scale_factor); // We don't yet support scale_factor. |
+ if (!StartPage(page_size, content_origin.y(), content_origin.x())) |
+ return NULL; |
+ |
+ return skia::VectorPlatformDeviceFactory::CreateDevice(context_, |
+ page_size.width(), |
+ page_size.height(), |
+ true); |
+} |
+ |
cairo_t* PdfPsMetafile::StartPage(const gfx::Size& page_size, |
double margin_top_in_points, |
double margin_left_in_points) { |