From 4a146de428a502f0de45e571f415039b3989ef38 Mon Sep 17 00:00:00 2001 From: "vandebo@chromium.org" Date: Sat, 19 Mar 2011 04:37:08 +0000 Subject: 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 --- printing/emf_win.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'printing/emf_win.h') 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. -- cgit v1.1