OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkRect_DEFINED | 10 #ifndef SkRect_DEFINED |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 * or height() would have returned a negative value.) This should be called | 826 * or height() would have returned a negative value.) This should be called |
827 * if the edges are computed separately, and may have crossed over each | 827 * if the edges are computed separately, and may have crossed over each |
828 * other. When this returns, left <= right && top <= bottom | 828 * other. When this returns, left <= right && top <= bottom |
829 */ | 829 */ |
830 void sort(); | 830 void sort(); |
831 | 831 |
832 /** | 832 /** |
833 * cast-safe way to treat the rect as an array of (4) SkScalars. | 833 * cast-safe way to treat the rect as an array of (4) SkScalars. |
834 */ | 834 */ |
835 const SkScalar* asScalars() const { return &fLeft; } | 835 const SkScalar* asScalars() const { return &fLeft; } |
| 836 |
| 837 #ifdef SK_DEVELOPER |
| 838 /** |
| 839 * Dumps the rect using SkDebugf. This is intended for Skia development debu
gging. Don't |
| 840 * rely on the existence of this function or the formatting of its output. |
| 841 */ |
| 842 void dump() const { |
| 843 SkDebugf("{ l: %f, t: %f, r: %f, b: %f }", fLeft, fTop, fRight, fBottom)
; |
| 844 } |
| 845 #endif |
| 846 |
836 }; | 847 }; |
837 | 848 |
838 #endif | 849 #endif |
OLD | NEW |