Revert "switch to new filltype for SkPath"
This reverts commit 3a50981a834b1502151038e3e511fe78805ab0e3.
Reason for revert: chrome win build found compile-problem in xpsdevice
Original change's description:
> 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>
TBR=fmalita@chromium.org,reed@google.com
Change-Id: Iacb3566da61c2512b9bd6b7e42b592febc85e031
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256530
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/src/xps/SkXPSDevice.cpp b/src/xps/SkXPSDevice.cpp
index 87b5dfa..7a4ff99 100644
--- a/src/xps/SkXPSDevice.cpp
+++ b/src/xps/SkXPSDevice.cpp
@@ -1182,7 +1182,7 @@
if (rect_must_be_pathed(paint, this->localToDevice())) {
SkPath tmp;
tmp.addRect(r);
- tmp.setFillType(SkPathFillType::kWinding);
+ tmp.setFillType(SkPath::kWinding_FillType);
this->drawPath(tmp, paint, true);
return;
}
@@ -1608,13 +1608,13 @@
SkPath* xpsCompatiblePath = fillablePath;
XPS_FILL_RULE xpsFillRule;
switch (fillablePath->getFillType()) {
- case SkPathFillType::kWinding:
+ case SkPath::kWinding_FillType:
xpsFillRule = XPS_FILL_RULE_NONZERO;
break;
- case SkPathFillType::kEvenOdd:
+ case SkPath::kEvenOdd_FillType:
xpsFillRule = XPS_FILL_RULE_EVENODD;
break;
- case SkPathFillType::kInverseWinding: {
+ case SkPath::kInverseWinding_FillType: {
//[Fillable-path (inverse winding) -> XPS-path (inverse even odd)]
if (!pathIsMutable) {
xpsCompatiblePath = &modifiedPath;
@@ -1626,7 +1626,7 @@
}
}
// The xpsCompatiblePath is now inverse even odd, so fall through.
- case SkPathFillType::kInverseEvenOdd: {
+ case SkPath::kInverseEvenOdd_FillType: {
const SkRect universe = SkRect::MakeLTRB(
0, 0,
this->fCurrentCanvasSize.fWidth,