| Index: include/core/SkRect.h
|
| diff --git a/include/core/SkRect.h b/include/core/SkRect.h
|
| index 2c155c477ab46bdc1479f40e215730c61f8e0625..77051c2d8b0117b9f95c5904073c8018ed8162fe 100644
|
| --- a/include/core/SkRect.h
|
| +++ b/include/core/SkRect.h
|
| @@ -833,6 +833,17 @@ struct SK_API SkRect {
|
| * cast-safe way to treat the rect as an array of (4) SkScalars.
|
| */
|
| 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
|
| +
|
| };
|
|
|
| #endif
|
|
|