Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: src/utils/debugger/SkObjectParser.cpp

Issue 1470063002: Upgrade debugger to print more SkPath info (isOval & isRRect) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkObjectParser.cpp
diff --git a/src/utils/debugger/SkObjectParser.cpp b/src/utils/debugger/SkObjectParser.cpp
index 5132a4e7b9c009172168ac4afdec0485969e1fb3..3dbc03901fbb65f22b88126ced4d51c9aa05e9ab 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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698