Index: printing/pdf_metafile_skia.h |
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h |
index cb69b91685746a42222e3da40aaf5d2344ff455c..948e27f45e088f54ad91072040f4865e2f5b2796 100644 |
--- a/printing/pdf_metafile_skia.h |
+++ b/printing/pdf_metafile_skia.h |
@@ -11,6 +11,7 @@ |
#include "base/macros.h" |
#include "build/build_config.h" |
+#include "cc/paint/paint_canvas.h" |
#include "printing/metafile.h" |
#include "skia/ext/platform_canvas.h" |
@@ -18,8 +19,6 @@ |
#include <windows.h> |
#endif |
-class SkCanvas; |
- |
namespace printing { |
enum SkiaDocumentType { |
@@ -73,13 +72,13 @@ class PRINTING_EXPORT PdfMetafileSkia : public Metafile { |
// This method calls StartPage and then returns an appropriate |
// PlatformCanvas implementation bound to the context created by |
- // StartPage or NULL on error. The SkCanvas pointer that |
+ // StartPage or NULL on error. The PaintCanvas pointer that |
// is returned is owned by this PdfMetafileSkia object and does not |
// need to be ref()ed or unref()ed. The canvas will remain valid |
// until FinishPage() or FinishDocument() is called. |
- SkCanvas* GetVectorCanvasForNewPage(const gfx::Size& page_size, |
- const gfx::Rect& content_area, |
- const float& scale_factor); |
+ cc::PaintCanvas* GetVectorCanvasForNewPage(const gfx::Size& page_size, |
+ const gfx::Rect& content_area, |
+ const float& scale_factor); |
private: |
std::unique_ptr<PdfMetafileSkiaData> data_; |