Upgrade debugger to print more SkPath info (isOval & isRRect)
Review URL: https://codereview.chromium.org/1470063002
diff --git a/src/utils/debugger/SkObjectParser.cpp b/src/utils/debugger/SkObjectParser.cpp
index 5132a4e..3dbc039 100644
--- a/src/utils/debugger/SkObjectParser.cpp
+++ b/src/utils/debugger/SkObjectParser.cpp
@@ -159,6 +159,19 @@
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());