summaryrefslogtreecommitdiffstats
path: root/printing/emf_win.cc
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-23 02:08:57 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-23 02:08:57 +0000
commit19b9d3b580c92f4cf80854227d6d4b366bc34871 (patch)
tree2026e7414e24197ef16d6caa6f0735b8b20e3f51 /printing/emf_win.cc
parentad9d525a9aac5e36280d1274e1b8efd6f4e58632 (diff)
downloadchromium_src-19b9d3b580c92f4cf80854227d6d4b366bc34871.zip
chromium_src-19b9d3b580c92f4cf80854227d6d4b366bc34871.tar.gz
chromium_src-19b9d3b580c92f4cf80854227d6d4b366bc34871.tar.bz2
Make Metafile::StartPageForVectorCanvas take the page number as an argument.
This will let us add pages to a metafile out of order for print preview. Also, make PdfMetafileSkia::GetMetafileForCurrentPage use draft mode, now that it's available. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7481019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.cc')
-rw-r--r--printing/emf_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/printing/emf_win.cc b/printing/emf_win.cc
index 4cb8530..920d64f 100644
--- a/printing/emf_win.cc
+++ b/printing/emf_win.cc
@@ -404,8 +404,9 @@ bool Emf::Record::SafePlayback(const XFORM* base_matrix) const {
}
SkDevice* Emf::StartPageForVectorCanvas(
- const gfx::Size& page_size, const gfx::Rect& content_area,
+ int page_number, const gfx::Size& page_size, const gfx::Rect& content_area,
const float& scale_factor) {
+ DCHECK(page_number == page_count_);
if (!StartPage(page_size, content_area, scale_factor))
return NULL;