aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/debugger/SkObjectParser.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-11-24 06:34:50 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-24 06:34:50 -0800
commit3d2e65439ef98c4b8055e47b04e00d0c8926bf0a (patch)
treec43939a62aa97cf92672f97dd8290a4880097107 /src/utils/debugger/SkObjectParser.cpp
parent4870e6d4c9ee76ee328969e82238c7adc371fd33 (diff)
Upgrade debugger to print more SkPath info (isOval & isRRect)
Diffstat (limited to 'src/utils/debugger/SkObjectParser.cpp')
-rw-r--r--src/utils/debugger/SkObjectParser.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/utils/debugger/SkObjectParser.cpp b/src/utils/debugger/SkObjectParser.cpp
index 5132a4e7b9..3dbc03901f 100644
--- a/src/utils/debugger/SkObjectParser.cpp
+++ b/src/utils/debugger/SkObjectParser.cpp
@@ -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());