Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: printing/metafile_skia_wrapper.h

Issue 2686033005: Move metafile printing code from platform canvas to PaintCanvas (Closed)
Patch Set: Fix missing build_config include Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/DEPS ('k') | printing/metafile_skia_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/metafile_skia_wrapper.h
diff --git a/printing/metafile_skia_wrapper.h b/printing/metafile_skia_wrapper.h
index 6236e85a4c4c5e372009b7c237b94c01648212eb..4bca57fd6af6b57a65bcad1afbeb1e572984b487 100644
--- a/printing/metafile_skia_wrapper.h
+++ b/printing/metafile_skia_wrapper.h
@@ -5,11 +5,10 @@
#ifndef PRINTING_METAFILE_SKIA_WRAPPER_H_
#define PRINTING_METAFILE_SKIA_WRAPPER_H_
+#include "cc/paint/paint_canvas.h"
#include "printing/printing_export.h"
#include "third_party/skia/include/core/SkRefCnt.h"
-class SkCanvas;
-
namespace printing {
class PdfMetafileSkia;
@@ -20,10 +19,10 @@ class PdfMetafileSkia;
// as long as the canvas.
class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt {
public:
- static void SetMetafileOnCanvas(const SkCanvas& canvas,
+ static void SetMetafileOnCanvas(cc::PaintCanvas* canvas,
PdfMetafileSkia* metafile);
- static PdfMetafileSkia* GetMetafileFromCanvas(const SkCanvas& canvas);
+ static PdfMetafileSkia* GetMetafileFromCanvas(cc::PaintCanvas* canvas);
private:
explicit MetafileSkiaWrapper(PdfMetafileSkia* metafile);
« no previous file with comments | « printing/DEPS ('k') | printing/metafile_skia_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698