Revert "Revert "switch to new filltype for SkPath""
This reverts commit 3e7af41224eecf8393f3cdc08c4c9800b2321c20.
Change-Id: Id4f66b3956f4bdbe690db20fc478b7365ee89717
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256676
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Mike Reed <reed@google.com>
diff --git a/docs/examples/Canvas_drawPath.cpp b/docs/examples/Canvas_drawPath.cpp
index d62374d..2a5460b 100644
--- a/docs/examples/Canvas_drawPath.cpp
+++ b/docs/examples/Canvas_drawPath.cpp
@@ -24,9 +24,9 @@
canvas->translate(-240, 60);
}
paint.setStyle(SkPaint::kFill_Style);
- for (auto fill : { SkPath::kWinding_FillType,
- SkPath::kEvenOdd_FillType,
- SkPath::kInverseWinding_FillType } ) {
+ for (auto fill : { SkPathFillType::kWinding,
+ SkPathFillType::kEvenOdd,
+ SkPathFillType::kInverseWinding } ) {
path.setFillType(fill);
canvas->save();
canvas->clipRect({0, 10, 80, 70});