Update debugger for addition of Conic path verb
R=reed@google.com, djsollen@google.com Author: robertphillips@google.com Review URL: https://chromiumcodereview.appspot.com/16224008 git-svn-id: http://skia.googlecode.com/svn/trunk@9438 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
ecaa59d878
commit
4a3ca94322
@ -138,11 +138,11 @@ SkString* SkObjectParser::PathToString(const SkPath& path) {
|
||||
mPath->append("P): ");
|
||||
|
||||
static const char* gVerbStrings[] = {
|
||||
"Move", "Line", "Quad", "Cubic", "Close", "Done"
|
||||
"Move", "Line", "Quad", "Conic", "Cubic", "Close", "Done"
|
||||
};
|
||||
static const int gPtsPerVerb[] = { 1, 1, 2, 3, 0, 0 };
|
||||
static const int gPtOffsetPerVerb[] = { 0, 1, 1, 1, 0, 0 };
|
||||
SkASSERT(SkPath::kDone_Verb == 5);
|
||||
static const int gPtsPerVerb[] = { 1, 1, 2, 2, 3, 0, 0 };
|
||||
static const int gPtOffsetPerVerb[] = { 0, 1, 1, 1, 1, 0, 0 };
|
||||
SkASSERT(SkPath::kDone_Verb == 6);
|
||||
|
||||
SkPath::Iter iter(const_cast<SkPath&>(path), false);
|
||||
SkPath::Verb verb;
|
||||
@ -160,8 +160,16 @@ SkString* SkObjectParser::PathToString(const SkPath& path) {
|
||||
mPath->appendScalar(points[gPtOffsetPerVerb[verb]+i].fX);
|
||||
mPath->append(", ");
|
||||
mPath->appendScalar(points[gPtOffsetPerVerb[verb]+i].fY);
|
||||
mPath->append(") ");
|
||||
mPath->append(")");
|
||||
}
|
||||
|
||||
if (SkPath::kConic_Verb == verb) {
|
||||
mPath->append("(");
|
||||
mPath->appendScalar(iter.conicWeight());
|
||||
mPath->append(")");
|
||||
}
|
||||
|
||||
mPath->append(" ");
|
||||
}
|
||||
|
||||
SkString* boundStr = SkObjectParser::RectToString(path.getBounds(), " Bound: ");
|
||||
|
Loading…
Reference in New Issue
Block a user