aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/MemoryTest.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-03-03 13:32:38 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-03 13:32:38 -0800
commitce56026db55d8585c2f920a6107a25b40fd5160a (patch)
treef5bda60bf1087f261054ae7d29843ca26f2b85cc /tests/MemoryTest.cpp
parentd812fb458807245daa812adb7af0733cf5b54d96 (diff)
Force tiles in SampleApp to integer boundaries.
The current behavior is to create tiles from the rounded ideal tile size, tell the tile that it's upper left pixel is at the ideal location, and then draw those tiles at the ideal locations. As a result, the tiles are be out of phase with each other internally and then actually drawn at the rounded pixel location instead of the ideal location. The new behavior is to always round up to get the tile size, make the tile translation an integer offset, and then draw at the exact pixel. This also modifies SampleApp to use the numeric keypad to provide an extra manual 1/32 pixel translation for fine grained movement. BUG=skia:5020 Review URL: https://codereview.chromium.org/1763833002
Diffstat (limited to 'tests/MemoryTest.cpp')
0 files changed, 0 insertions, 0 deletions