Add display of a path's filltype to debugger
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 5 Dec 2012 19:34:33 +0000 (19:34 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 5 Dec 2012 19:34:33 +0000 (19:34 +0000)
https://codereview.appspot.com/6887044/

git-svn-id: http://skia.googlecode.com/svn/trunk@6679 2bbb7eff-a529-9590-31e7-b0007b416f81

debugger/SkObjectParser.cpp

index cfb0744..315e81c 100644 (file)
@@ -106,6 +106,13 @@ SkString* SkObjectParser::PaintToString(const SkPaint& paint) {
 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"
     };