aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar liyuqian <liyuqian@google.com>2016-11-03 11:40:19 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-11-03 11:40:19 -0700
commitbdabcc4cb873dc4de39263c995900a05e6a32cf4 (patch)
tree162166cd61a876f7bbf64664c8ac8a8c61b39463 /src/core
parent6b059bdc40d070fe08a3ff071e45be782297ab08 (diff)
Fix quad convexity with only one backward dir
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkPath.cpp5
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;