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:
parent
935ad02682
commit
51185fe3d4
@ -106,6 +106,13 @@ SkString* SkObjectParser::PaintToString(const SkPaint& paint) {
|
|||||||
SkString* SkObjectParser::PathToString(const SkPath& path) {
|
SkString* SkObjectParser::PathToString(const SkPath& path) {
|
||||||
SkString* mPath = new SkString("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[] = {
|
static const char* gConvexityStrings[] = {
|
||||||
"Unknown", "Convex", "Concave"
|
"Unknown", "Convex", "Concave"
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user