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

Side by Side Diff: include/core/SkRect.h

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 unified diff | Download patch
« no previous file with comments | « include/core/SkRRect.h ('k') | include/core/SkRegion.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « include/core/SkRRect.h ('k') | include/core/SkRegion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698