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

Unified Diff: printing/metafile_skia_wrapper.h

Issue 559263002: Replaced Metafile with PdfMetafileSkia in renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Thu Sep 11 15:46:31 PDT 2014 Created 6 years, 3 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 | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('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 42bbc5f9f69aae88c5ddc77e8e7555656cb29d57..fdf5f751f1ae74e13a6d4251c997b61e102e1d82 100644
--- a/printing/metafile_skia_wrapper.h
+++ b/printing/metafile_skia_wrapper.h
@@ -12,26 +12,27 @@ class SkCanvas;
namespace printing {
-class Metafile;
+class PdfMetafileSkia;
-// A wrapper class with static methods to set and retrieve a Metafile
+// A wrapper class with static methods to set and retrieve a PdfMetafileSkia
// on an SkCanvas. The ownership of the metafile is not affected and it
// is the caller's responsibility to ensure that the metafile remains valid
// as long as the canvas.
class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt {
public:
- static void SetMetafileOnCanvas(const SkCanvas& canvas, Metafile* metafile);
+ static void SetMetafileOnCanvas(const SkCanvas& canvas,
+ PdfMetafileSkia* metafile);
- static Metafile* GetMetafileFromCanvas(const SkCanvas& canvas);
+ static PdfMetafileSkia* GetMetafileFromCanvas(const SkCanvas& canvas);
// Methods to set and retrieve custom scale factor for metafile from canvas.
static void SetCustomScaleOnCanvas(const SkCanvas& canvas, double scale);
static bool GetCustomScaleOnCanvas(const SkCanvas& canvas, double* scale);
private:
- explicit MetafileSkiaWrapper(Metafile* metafile);
+ explicit MetafileSkiaWrapper(PdfMetafileSkia* metafile);
- Metafile* metafile_;
+ PdfMetafileSkia* metafile_;
};
} // namespace printing
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | printing/metafile_skia_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698