Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index 4dc2f9665611459ee1c8734997ee45b91a30f51a..c1b63271938849b284daf766df9fde2be196e41f 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; |