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
This commit is contained in:
robertphillips@google.com 2012-12-05 19:34:33 +00:00
parent 935ad02682
commit 51185fe3d4

View 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"
};