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

Unified Diff: src/core/SkRRect.cpp

Issue 311263015: Add dump() to SkClipStack to help with debugging. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add \n. Created 6 years, 6 months 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 | « src/core/SkPath.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRRect.cpp
diff --git a/src/core/SkRRect.cpp b/src/core/SkRRect.cpp
index 7661fd272b5e7c27fffd77fab1dafb5f2d51e100..9bb6725deac3c4ed79c3b6068e563f62ce3ea2f8 100644
--- a/src/core/SkRRect.cpp
+++ b/src/core/SkRRect.cpp
@@ -436,6 +436,18 @@ size_t SkRRect::readFromMemory(const void* buffer, size_t length) {
return kSizeInMemory;
}
+#ifdef SK_DEVELOPER
+void SkRRect::dump() const {
+ SkDebugf("Rect: ");
+ fRect.dump();
+ SkDebugf(" Corners: { TL: (%f, %f), TR: (%f, %f), BR: (%f, %f), BL: (%f, %f) }",
+ fRadii[kUpperLeft_Corner].fX, fRadii[kUpperLeft_Corner].fY,
+ fRadii[kUpperRight_Corner].fX, fRadii[kUpperRight_Corner].fY,
+ fRadii[kLowerRight_Corner].fX, fRadii[kLowerRight_Corner].fY,
+ fRadii[kLowerLeft_Corner].fX, fRadii[kLowerLeft_Corner].fY);
+}
+#endif
+
///////////////////////////////////////////////////////////////////////////////
#ifdef SK_DEBUG
« no previous file with comments | « src/core/SkPath.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698