GrTessellator (AA): improve AA quality for near-overlapping paths.
authorStephen White <senorblanco@chromium.org>
Mon, 30 Jan 2017 19:31:31 +0000 (14:31 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 30 Jan 2017 22:39:35 +0000 (22:39 +0000)
commit56158ae600a73ac2e74f5a5862de0fab466b52b6
tree471d94d56657ec49a9de69cf3cb9c9d99aa975cf
parent738bc58988f7d9a3d3231d5c7694c67890c74ffa
GrTessellator (AA): improve AA quality for near-overlapping paths.

When path features are very close together, the outer contours can
overlap. This causes the connector edges (the ones joining the inner and
outer vertices) to intersect other edges. Lerping the alpha along the
connector edge gives us a good approximation of the coverage at that
point.

BUG=skia:

Change-Id: I56bcc570fc185344c5f84d11ef995d3940a08793
Reviewed-on: https://skia-review.googlesource.com/7701
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Stephan White <senorblanco@chromium.org>
src/gpu/GrTessellator.cpp