commit | bdabcc4cb873dc4de39263c995900a05e6a32cf4 | [log] [tgz] |
---|---|---|
author | liyuqian <liyuqian@google.com> | Thu Nov 03 11:40:19 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Thu Nov 03 11:40:19 2016 -0700 |
tree | 162166cd61a876f7bbf64664c8ac8a8c61b39463 | |
parent | 6b059bdc40d070fe08a3ff071e45be782297ab08 [diff] [blame] |
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
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 4dc2f96..c1b6327 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp
@@ -2405,8 +2405,9 @@ 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;