SkScan_Antihair: assert in debug and potentialy lost last pixels
authoraleksandar.stojiljkovic <aleksandar.stojiljkovic@intel.com>
Mon, 2 Nov 2015 21:28:51 +0000 (13:28 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Nov 2015 21:28:51 +0000 (13:28 -0800)
commit7600183ba7d8c8df6fbba1b32a73e6394216754e
tree61bb64b51077a78a0c679105af3a5396f671c1ec
parent29a440d2d6f306498a7b54e978e3b034bd625c19
SkScan_Antihair: assert in debug and potentialy lost last pixels

alpha: (uint8_t) 256 is clamped to 255 before static cast to
uint8_t in SkToU8.

BUG=4406

Review URL: https://codereview.chromium.org/1424253002
src/core/SkScan_Antihair.cpp
tests/RectTest.cpp