switch to new filltype for SkPath
Change-Id: I7793324a9acf4afb0eb38c1e20fbb38eac25d636
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256102
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/src/pathops/SkOpBuilder.cpp b/src/pathops/SkOpBuilder.cpp
index 9dac160..8a9eccd 100644
--- a/src/pathops/SkOpBuilder.cpp
+++ b/src/pathops/SkOpBuilder.cpp
@@ -36,11 +36,11 @@
}
bool SkOpBuilder::FixWinding(SkPath* path) {
- SkPath::FillType fillType = path->getFillType();
- if (fillType == SkPath::kInverseEvenOdd_FillType) {
- fillType = SkPath::kInverseWinding_FillType;
- } else if (fillType == SkPath::kEvenOdd_FillType) {
- fillType = SkPath::kWinding_FillType;
+ SkPathFillType fillType = path->getNewFillType();
+ if (fillType == SkPathFillType::kInverseEvenOdd) {
+ fillType = SkPathFillType::kInverseWinding;
+ } else if (fillType == SkPathFillType::kEvenOdd) {
+ fillType = SkPathFillType::kWinding;
}
SkPathPriv::FirstDirection dir;
if (one_contour(*path) && SkPathPriv::CheapComputeFirstDirection(*path, &dir)) {