Add display of a path's filltype to debugger
https://codereview.appspot.com/6887044/
git-svn-id: http://skia.googlecode.com/svn/trunk@6679 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/debugger/SkObjectParser.cpp b/debugger/SkObjectParser.cpp
index cfb0744..315e81c 100644
--- a/debugger/SkObjectParser.cpp
+++ b/debugger/SkObjectParser.cpp
@@ -106,6 +106,13 @@
SkString* SkObjectParser::PathToString(const SkPath& path) {
SkString* mPath = new SkString("Path (");
+ static const char* gFillStrings[] = {
+ "Winding", "EvenOdd", "InverseWinding", "InverseEvenOdd"
+ };
+
+ mPath->append(gFillStrings[path.getFillType()]);
+ mPath->append(", ");
+
static const char* gConvexityStrings[] = {
"Unknown", "Convex", "Concave"
};