commit | 2fd400c319c68b4b8bd741c0df51c8846c40a276 | [log] [tgz] |
---|---|---|
author | Bo Xu <bo_xu@foxitsoftware.com> | Thu Jul 31 09:55:36 2014 -0700 |
committer | Bo Xu <bo_xu@foxitsoftware.com> | Thu Jul 31 09:55:36 2014 -0700 |
tree | 4ad54aae90cccff87be7107afa06f3ce28d1e481 | |
parent | 10ec7ca17e7ec9aa68fd051c5fe5a6c75092dd79 [diff] |
Fix integer overflow when stretch bitmap When an image object is zoomed in by a big factor, the scaling factor in the transformation matrix is big as well, resulting in a large |dest_width| and |dest_height| value(they can be think of as the equivalent pixel size of the entire image, although most of it is outside the device). BUG=395636 R=vitalybuka@chromium.org Review URL: https://codereview.chromium.org/432543002