fix quadclipper in the case that the chop function fails
authorreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 22 Oct 2009 18:11:06 +0000 (18:11 +0000)
committerreed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 22 Oct 2009 18:11:06 +0000 (18:11 +0000)
commit8481ccc199ba3ed03acb19b1f341394db5bcb834
treeb9ff3c578bb9e144e9fa5d04c4b1662c3da089b3
parentd6a5f4e2008d96a896c76ca031bece0723e16e3c
fix quadclipper in the case that the chop function fails

If the chopper fails, then we've hit some numerical edge-case, which indicates
that the quad is just barely crossing the edge, so to handle that, we just
clamp the Y values to the edge. This distorts the quad, but only in the case
when 99% of the quad will not be affected.

git-svn-id: http://skia.googlecode.com/svn/trunk@404 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkQuadClipper.cpp