GrTessellator: fix for vertex coincident with enclosing edge.
authorStephen White <senorblanco@chromium.org>
Wed, 3 May 2017 20:00:38 +0000 (16:00 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 4 May 2017 05:10:48 +0000 (05:10 +0000)
commit64dbb89efc9daba9f62b4a385354a77aaa54861e
tree5c2dd79f543b09b066d48c9bc085f4fededc8470
parent0356714916c3279c88013e5bc6064f6b81d5fe5f
GrTessellator: fix for vertex coincident with enclosing edge.

If a previously-enclosing edge coincides exactly with the current
vertex, there are no two adjacent edges which enclose the vertex.
Since find_enclosing_edges() ensures that the left enclosing edge
is to the left of the vertex, the fix is to split the right
enclosing edge on the current vertex and restart intersection
tests.

Bug: 716720
Change-Id: Id26c5b92a6d6139f348e99554638cded37e81a8e
Reviewed-on: https://skia-review.googlesource.com/15261
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
src/gpu/GrTessellator.cpp
tests/TessellatingPathRendererTests.cpp