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

Unified Diff: printing/metafile_skia_wrapper.h

Issue 10387022: A better fix for scaling issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: printing/metafile_skia_wrapper.h
===================================================================
--- printing/metafile_skia_wrapper.h (revision 135774)
+++ printing/metafile_skia_wrapper.h (working copy)
@@ -24,6 +24,10 @@
static Metafile* 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);

Powered by Google App Engine
This is Rietveld 408576698