diff options
author | Brian Osman <brianosman@google.com> | 2017-02-06 13:24:47 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-06 19:03:36 +0000 |
commit | d05cdc310c1ff1183a3c350e02ff603a4e97c02e (patch) | |
tree | 1b1799a42825b95090166d089c8a508fa84b4ac4 /src/sksl/ir/SkSLConstructor.h | |
parent | 5e221e7ca26130393a0527bb9b5155d6685b74ba (diff) |
Fix two bugs when deciding to tile. Large images were always tiling.
usedTileBytes was actually usedTileTexels, so we underestimated how much
of the image we were using by a factor of 4.
Then, to determine if we were using more than 50% of the image, we wrote:
usedTileBytes < 2 * bmpSize;
That meant we were off by another factor of 4.
BUG=skia:
Change-Id: Iba2acc75c5e7603543f05e4473b73f76a2937d7a
Reviewed-on: https://skia-review.googlesource.com/8063
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/ir/SkSLConstructor.h')
0 files changed, 0 insertions, 0 deletions