aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkRect.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-12-15 07:59:53 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-15 07:59:53 -0800
commite05fed0d6339c63c8cceff74af0b8d120c07e54c (patch)
treede54a038e60ec105dd7028c0db227895eb16aa59 /include/core/SkRect.h
parentce1c8869cf5e37753f9c8193314d93bff897d014 (diff)
add dumpHex option to rect and rrect, to match path
Diffstat (limited to 'include/core/SkRect.h')
-rw-r--r--include/core/SkRect.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index 64e6abd08d..394e45d4ca 100644
--- a/include/core/SkRect.h
+++ b/include/core/SkRect.h
@@ -862,16 +862,9 @@ public:
*/
const SkScalar* asScalars() const { return &fLeft; }
-#ifdef SK_DEVELOPER
- /**
- * Dumps the rect using SkDebugf. This is intended for Skia development debugging. Don't
- * rely on the existence of this function or the formatting of its output.
- */
- void dump() const {
- SkDebugf("{ l: %f, t: %f, r: %f, b: %f }", fLeft, fTop, fRight, fBottom);
- }
-#endif
-
+ void dump(bool asHex) const;
+ void dump() const { this->dump(false); }
+ void dumpHex() const { this->dump(true); }
};
#endif