diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-28 03:07:34 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-28 03:07:34 +0000 |
commit | be44f2f511cd692192b2668d40c4226ab3b60ce7 (patch) | |
tree | c3fe9a588245cc30992f529646c186bf5e0df799 /printing/metafile_skia_wrapper.h | |
parent | 8a99325f089a06a2c36cc8cc2987a2ebb98b8bcb (diff) | |
download | chromium_src-be44f2f511cd692192b2668d40c4226ab3b60ce7.zip chromium_src-be44f2f511cd692192b2668d40c4226ab3b60ce7.tar.gz chromium_src-be44f2f511cd692192b2668d40c4226ab3b60ce7.tar.bz2 |
Reland 103021: Printing preview of a PDF on Mac with Skia only previews the last page of the PDF
BUG=93145
TEST=Please refer to bug report.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103021
Original review URL: codereview.chromium.org/7719014
Please refer to trybot results in the last patch of original review url.
Review URL: http://codereview.chromium.org/8059034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/metafile_skia_wrapper.h')
-rw-r--r-- | printing/metafile_skia_wrapper.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/printing/metafile_skia_wrapper.h b/printing/metafile_skia_wrapper.h index 40e26e8..9010449 100644 --- a/printing/metafile_skia_wrapper.h +++ b/printing/metafile_skia_wrapper.h @@ -20,13 +20,9 @@ class Metafile; // as long as the canvas. class PRINTING_EXPORT MetafileSkiaWrapper : public SkRefCnt { public: - static void SetMetafileOnCanvas(SkCanvas* canvas, Metafile* metafile); + static void SetMetafileOnCanvas(const SkCanvas& canvas, Metafile* metafile); - static Metafile* GetMetafileFromCanvas(SkCanvas* canvas); - - static void SetDraftMode(SkCanvas* canvas, bool draft_mode); - - static bool GetDraftMode(SkCanvas* canvas); + static Metafile* GetMetafileFromCanvas(const SkCanvas& canvas); private: explicit MetafileSkiaWrapper(Metafile* metafile); |