Upgrade debugger to print more SkPath info (isOval & isRRect)

Review URL: https://codereview.chromium.org/1470063002
This commit is contained in:
robertphillips 2015-11-24 06:34:50 -08:00 committed by Commit bot
parent 4870e6d4c9
commit 3d2e65439e

View File

@ -159,6 +159,19 @@ SkString* SkObjectParser::PathToString(const SkPath& path) {
mPath->append("isNotRect, ");
}
if (path.isOval(nullptr)) {
mPath->append("isOval, ");
} else {
mPath->append("isNotOval, ");
}
SkRRect rrect;
if (path.isRRect(&rrect)) {
mPath->append("isRRect, ");
} else {
mPath->append("isNotRRect, ");
}
mPath->appendS32(path.countVerbs());
mPath->append("V, ");
mPath->appendS32(path.countPoints());