Add output scale factor command line parameter to pdfium_test.
authorTom Sepez <tsepez@chromium.org>
Thu, 29 Jan 2015 23:44:37 +0000 (15:44 -0800)
committerTom Sepez <tsepez@chromium.org>
Thu, 29 Jan 2015 23:44:37 +0000 (15:44 -0800)
commitdaa2e84dfca2f1cf39e064bd9ad6ee3e2cd70825
treea64e16da35fb02b7951577e26a40a1c87e8cea88
parent526f6d5279141b270898e7e07ded7b4ce021d0d6
Add output scale factor command line parameter to pdfium_test.

It turns out that pdfium rendering takes some significantly different paths
when the output bitmap size is the same as the document size, since it can
avoid work in that case. For example, to reproduce the referenced bug, a scale
factor less than 1.0 is required, so we add a parameter to let pdfium_test
cover that case.

BUG=451265
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/861203003
samples/pdfium_test.cc