X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fprinting%2Fmetafile_skia_wrapper.h;h=fdf5f751f1ae74e13a6d4251c997b61e102e1d82;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=42bbc5f9f69aae88c5ddc77e8e7555656cb29d57;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/printing/metafile_skia_wrapper.h b/src/printing/metafile_skia_wrapper.h index 42bbc5f..fdf5f75 100644 --- a/src/printing/metafile_skia_wrapper.h +++ b/src/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