summaryrefslogtreecommitdiffstats
path: root/printing/metafile_skia_wrapper.h
diff options
context:
space:
mode:
Diffstat (limited to 'printing/metafile_skia_wrapper.h')
-rw-r--r--printing/metafile_skia_wrapper.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/printing/metafile_skia_wrapper.h b/printing/metafile_skia_wrapper.h
index 9010449..42bbc5f 100644
--- a/printing/metafile_skia_wrapper.h
+++ b/printing/metafile_skia_wrapper.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -24,6 +24,10 @@ class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt {
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);