treat backwards quads as not convex
authorcaryclark <caryclark@google.com>
Mon, 2 Mar 2015 18:07:56 +0000 (10:07 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Mar 2015 18:07:56 +0000 (10:07 -0800)
commit5ccef577902ce1aefa05fb8107ad5d0aba848e7d
treed7bec4c94c21054c720a1007c4c2aca2dbd4484a
parent341c808070dddc59a024bd15d1d65ca90cef3dfb
treat backwards quads as not convex

If a quad, cubic, or conic goes back on itself, assume it's not convex.
In a future CL, we could check to see if the curve is linear so that
linear curves are treated the same as lines.

BUG=skia:3469

Review URL: https://codereview.chromium.org/971773002
src/core/SkPath.cpp
tests/PathTest.cpp