Home | History | Annotate | Download | only in core

Lines Matching refs:rect

21 /** Returns true if the rect's dimensions are between 0 and SK_MaxS32
23 static inline bool SkIsValidIRect(const SkIRect& rect) {
24 return rect.width() >= 0 && rect.height() >= 0;
27 /** Returns true if the rect's dimensions are between 0 and SK_ScalarMax
29 static inline bool SkIsValidRect(const SkRect& rect) {
30 return (rect.fLeft <= rect.fRight) &&
31 (rect.fTop <= rect.fBottom) &&
32 SkScalarIsFinite(rect.width()) &&
33 SkScalarIsFinite(rect.height());