diff options
author | liyuqian <liyuqian@google.com> | 2016-11-03 11:40:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-03 11:40:19 -0700 |
commit | bdabcc4cb873dc4de39263c995900a05e6a32cf4 (patch) | |
tree | 162166cd61a876f7bbf64664c8ac8a8c61b39463 /src/core | |
parent | 6b059bdc40d070fe08a3ff071e45be782297ab08 (diff) |
Fix quad convexity with only one backward dir
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2465253008
Review-Url: https://codereview.chromium.org/2465253008
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkPath.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 4dc2f96656..c1b6327193 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -2405,8 +2405,9 @@ private: break; case kBackwards_DirChange: if (fIsCurve) { - fConvexity = SkPath::kConcave_Convexity; - fFirstDirection = SkPathPriv::kUnknown_FirstDirection; + // If any of the subsequent dir is non-backward, it'll be concave. + // Otherwise, it's still convex. + fExpectedDir = dir; } fLastVec = vec; break; |