Check for degenerate edges in cubic->quad conversion called by convex path renderer.
authorbsalomon <bsalomon@google.com>
Thu, 19 Jun 2014 19:33:08 +0000 (12:33 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Jun 2014 19:33:08 +0000 (12:33 -0700)
commit3935a7bfe64293edf9b06527f59d657ff4e280cb
tree27f956434007262a4c951da24d4c82e8bcce29fe
parentf168b86d7fafc5c20c87bebc6fd393cb17e120ca
Check for degenerate edges in cubic->quad conversion called by convex path renderer.

Cubics that are nearly degenerate now make it down here via the convex path renderer. They used to get filtered out by the path iterator but that was problematic. We wound up producing NaN vertices.

BUG=2677
R=jvanverth@google.com

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/338633007
src/gpu/GrPathUtils.cpp