diff options
author | robertphillips <robertphillips@google.com> | 2015-11-24 06:34:50 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-24 06:34:50 -0800 |
commit | 3d2e65439ef98c4b8055e47b04e00d0c8926bf0a (patch) | |
tree | c43939a62aa97cf92672f97dd8290a4880097107 /src/utils | |
parent | 4870e6d4c9ee76ee328969e82238c7adc371fd33 (diff) |
Upgrade debugger to print more SkPath info (isOval & isRRect)
Review URL: https://codereview.chromium.org/1470063002
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/debugger/SkObjectParser.cpp | 13 |
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()); |