Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: src/core/SkPath.cpp

Issue 2465253008: Fix quad convexity with only one backward dir (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/PathTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | tests/PathTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698