| Index: printing/metafile.h
|
| diff --git a/printing/metafile.h b/printing/metafile.h
|
| index 12b50334e432cb9c6b158f14b58bb3dfb9577f71..8ff51bea9aae89c6eccf940d2de870df920263a4 100644
|
| --- a/printing/metafile.h
|
| +++ b/printing/metafile.h
|
| @@ -10,6 +10,8 @@
|
| #include "base/basictypes.h"
|
| #include "build/build_config.h"
|
| #include "printing/printing_export.h"
|
| +#include "skia/ext/refptr.h"
|
| +#include "skia/ext/vector_canvas.h"
|
| #include "ui/gfx/native_widget_types.h"
|
|
|
| #if defined(OS_WIN)
|
| @@ -112,6 +114,14 @@ class PRINTING_EXPORT Metafile : public MetafilePlayer {
|
| virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size) = 0;
|
|
|
| // This method calls StartPage and then returns an appropriate
|
| + // VectorCanvas implementation bound to the context created by
|
| + // StartPage or NULL on error. The default implementation calls
|
| + // StartPageForVectorCanvas. This method is preferred.
|
| + virtual skia::RefPtr<skia::VectorCanvas> GetVectorCanvasForNewPage(
|
| + const gfx::Size& page_size, const gfx::Rect& content_area,
|
| + const float& scale_factor);
|
| +
|
| + // This method calls StartPage and then returns an appropriate
|
| // VectorPlatformDevice implementation bound to the context created by
|
| // StartPage or NULL on error.
|
| virtual SkBaseDevice* StartPageForVectorCanvas(const gfx::Size& page_size,
|
|
|