diff options
author | 2014-12-15 07:59:53 -0800 | |
---|---|---|
committer | 2014-12-15 07:59:53 -0800 | |
commit | e05fed0d6339c63c8cceff74af0b8d120c07e54c (patch) | |
tree | de54a038e60ec105dd7028c0db227895eb16aa59 /include/core/SkRect.h | |
parent | ce1c8869cf5e37753f9c8193314d93bff897d014 (diff) |
add dumpHex option to rect and rrect, to match path
BUG=skia:
Review URL: https://codereview.chromium.org/801383002
Diffstat (limited to 'include/core/SkRect.h')
-rw-r--r-- | include/core/SkRect.h | 13 |
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 |