summaryrefslogtreecommitdiffstats
path: root/printing/emf_win.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 04:37:08 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-19 04:37:08 +0000
commit4a146de428a502f0de45e571f415039b3989ef38 (patch)
tree75e661ee9d2fcdae72ff35dc5e953054885b5c4a /printing/emf_win.h
parent09d8b96b586dc972f31b6e1c72643de6ffb5ad16 (diff)
downloadchromium_src-4a146de428a502f0de45e571f415039b3989ef38.zip
chromium_src-4a146de428a502f0de45e571f415039b3989ef38.tar.gz
chromium_src-4a146de428a502f0de45e571f415039b3989ef38.tar.bz2
Unfork VectorPlatformCanvas.
Unfork VectorPlatformCanvas by making NativeMetafile know how to create an appropriate VectorPlatformDevice. This will also be useful when we have multiple NativeMetafile implemenations (each requiring a different VectorPlatformDevices). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78662 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78663 Review URL: http://codereview.chromium.org/6665046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78812 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r--printing/emf_win.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h
index e3a0a8e..f2ccffd 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -35,6 +35,9 @@ class Emf : public NativeMetafile {
virtual bool Init() { return true; }
virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
+ virtual skia::PlatformDevice* StartPageForVectorCanvas(
+ const gfx::Size& page_size, const gfx::Point& content_origin,
+ const float& scale_factor);
// Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls
// (since StartPage and EndPage do not work in a metafile DC). Only valid
// when hdc_ is non-NULL. |page_size| and |content_origin| are ignored.