summaryrefslogtreecommitdiffstats
path: root/printing/pdf_metafile_skia.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 21:49:20 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 21:49:20 +0000
commitb5cf844c86b06367280e5bf5b3584c9a284cd10d (patch)
treebdcc07d666ef0e5c1b99ac8598c9bb0d6be417c4 /printing/pdf_metafile_skia.cc
parent68c6f395372974da145e57d31974a6f1d1b4fdc5 (diff)
downloadchromium_src-b5cf844c86b06367280e5bf5b3584c9a284cd10d.zip
chromium_src-b5cf844c86b06367280e5bf5b3584c9a284cd10d.tar.gz
chromium_src-b5cf844c86b06367280e5bf5b3584c9a284cd10d.tar.bz2
Mac printing: Autorotate printed pages so their orientation is the same as the destination page.
BUG=93303,132922 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10560021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_metafile_skia.cc')
-rw-r--r--printing/pdf_metafile_skia.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc
index b1b35ed..06d0286 100644
--- a/printing/pdf_metafile_skia.cc
+++ b/printing/pdf_metafile_skia.cc
@@ -180,18 +180,13 @@ http://codereview.chromium.org/7200040/diff/1/webkit/plugins/ppapi/ppapi_plugin_
bool PdfMetafileSkia::RenderPage(unsigned int page_number,
CGContextRef context,
const CGRect rect,
- bool shrink_to_fit,
- bool stretch_to_fit,
- bool center_horizontally,
- bool center_vertically) const {
+ const MacRenderPageParams& params) const {
DCHECK_GT(data_->pdf_stream_.getOffset(), 0U);
if (data_->pdf_cg_.GetDataSize() == 0) {
SkAutoDataUnref data(data_->pdf_stream_.copyToData());
data_->pdf_cg_.InitFromData(data.bytes(), data.size());
}
- return data_->pdf_cg_.RenderPage(page_number, context, rect, shrink_to_fit,
- stretch_to_fit, center_horizontally,
- center_vertically);
+ return data_->pdf_cg_.RenderPage(page_number, context, rect, params);
}
#endif