Lines Matching refs:rect
26 /** Returns true if the rect's dimensions are between 0 and SK_MaxS32
28 static inline bool SkIsValidIRect(const SkIRect& rect) {
29 return rect.width() >= 0 && rect.height() >= 0;
32 /** Returns true if the rect's dimensions are between 0 and SK_ScalarMax
34 static inline bool SkIsValidRect(const SkRect& rect) {
35 return (rect.fLeft <= rect.fRight) &&
36 (rect.fTop <= rect.fBottom) &&
37 SkScalarIsFinite(rect.width()) &&
38 SkScalarIsFinite(rect.height());