DescriptionFixed an assertion error in GrAAConvexTessellator. While adding a new point, it would check that the new point was not a duplicate of the previous point. It would then drop the previous point if it was in the middle of a straight line, and proceed to add the new point.
Unfortunately, floating point precision issues mean that sometimes, after dropping the previous point, we'd end up with the newly-added point as a duplicate of the new previous point, tripping an assertion failure.
BUG=skia:4732
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1557903002
Committed: https://skia.googlesource.com/skia/+/1bcbc8f8c0747691496d779055675bc47ca65c86
Patch Set 1 #Patch Set 2 : #Messages
Total messages: 14 (8 generated)
|