Index: printing/native_metafile.h |
diff --git a/printing/native_metafile.h b/printing/native_metafile.h |
index 5981bf5e349b1e7cdfdca70629795016822cae85..b9df0d5015e98fd72edfc577b4d8b9452e98e685 100644 |
--- a/printing/native_metafile.h |
+++ b/printing/native_metafile.h |
@@ -26,6 +26,10 @@ class Rect; |
class Size; |
} |
+namespace skia { |
+class PlatformDevice; |
+} |
+ |
#if defined(OS_CHROMEOS) |
namespace base { |
class FileDescriptor; |
@@ -50,6 +54,13 @@ class NativeMetafile { |
// Note: It should only be called from within the browser process. |
virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size) = 0; |
+ // This method calls StartPage and then returns an appropriate |
+ // VectorPlatformDevice implementation bound to the context created by |
+ // StartPage or NULL on error. |
+ virtual skia::PlatformDevice* StartPageForVectorCanvas( |
+ const gfx::Size& page_size, const gfx::Point& content_origin, |
+ const float& scale_factor) = 0; |
+ |
// Prepares a context for rendering a new page at the specified |
// |content_origin| with the given |page_size| and a |scale_factor| to use for |
// the drawing. The units are in points (=1/72 in). Returns true on success. |