aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/svg/model/SkSVGTypes.h')
-rw-r--r--experimental/svg/model/SkSVGTypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGTypes.h b/experimental/svg/model/SkSVGTypes.h
index 42a09b93b5..c83fd7d10b 100644
--- a/experimental/svg/model/SkSVGTypes.h
+++ b/experimental/svg/model/SkSVGTypes.h
@@ -10,6 +10,7 @@
#include "SkColor.h"
#include "SkMatrix.h"
+#include "SkPath.h"
#include "SkPoint.h"
#include "SkRect.h"
#include "SkScalar.h"
@@ -238,6 +239,11 @@ public:
Type type() const { return fType; }
+ SkPath::FillType asFillType() const {
+ SkASSERT(fType != Type::kInherit); // should never be called for unresolved values.
+ return fType == Type::kEvenOdd ? SkPath::kEvenOdd_FillType : SkPath::kWinding_FillType;
+ }
+
private:
Type fType;
};