handle halfway case in scan converter
authorcaryclark <caryclark@google.com>
Mon, 4 Jan 2016 22:17:47 +0000 (14:17 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 4 Jan 2016 22:17:47 +0000 (14:17 -0800)
commit6df611574a3cf8abf2617af0d03a5553bb17360d
tree1e5bcb0e8c8048ad8958286ff4a7a37cf4829790
parent512f3e3b2592097a39bde9331829b38d16c0f85d
handle halfway case in scan converter

Scan edges that start at exactly -0.5 aren't trimmed by
clipping or by rounding, triggering a debug assert.

One way to fix this is to round the top and left
down instead of up.

Also, move the path initialization of gm/composeshader.cpp
to make debugging other path problems easier.

R=reed@google.com
BUG=skia:2715
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1544873002

Review URL: https://codereview.chromium.org/1544873002
gm/composeshader.cpp
include/core/SkRect.h
src/core/SkScan_Path.cpp
tests/DrawPathTest.cpp