19 SkASSERT(!
a.isFinite() || (
a.fLeft <=
a.fRight &&
a.fTop <=
a.fBottom));
20 SkASSERT(!
b.isFinite() || (
b.fLeft <=
b.fRight &&
b.fTop <=
b.fBottom));
21 return a.fRight >
b.fLeft &&
a.fBottom >
b.fTop &&
b.fRight >
a.fLeft &&
b.fBottom >
a.fTop;
28 SkASSERT(!
a.isFinite() || (
a.fLeft <=
a.fRight &&
a.fTop <=
a.fBottom));
29 SkASSERT(!
b.isFinite() || (
b.fLeft <=
b.fRight &&
b.fTop <=
b.fBottom));
30 return a.fRight >=
b.fLeft &&
a.fBottom >=
b.fTop &&
b.fRight >=
a.fLeft &&
b.fBottom >=
a.fTop;
53 if (srcRect->
fLeft < 0) {
57 if (dstPoint->
fX < 0) {
63 if (srcRect->
fTop < 0) {
64 dstPoint->
fY -= srcRect->
fTop;
67 if (dstPoint->
fY < 0) {
68 srcRect->
fTop -= dstPoint->
fY;
static bool GrClipSrcRectAndDstPoint(const SkISize &dstSize, SkIPoint *dstPoint, const SkISize &srcSize, SkIRect *srcRect)
static bool GrRectsOverlap(const SkRect &a, const SkRect &b)
static void GrMapRectPoints(const SkRect &inRect, const SkRect &outRect, const SkPoint inPts[], SkPoint outPts[], int ptCount)
static bool GrRectsTouchOrOverlap(const SkRect &a, const SkRect &b)
static SkMatrix RectToRect(const SkRect &src, const SkRect &dst, ScaleToFit mode=kFill_ScaleToFit)
void mapPoints(SkPoint dst[], const SkPoint src[], int count) const
int32_t fBottom
larger y-axis bounds
constexpr int32_t height() const
int32_t fTop
smaller y-axis bounds
constexpr int32_t width() const
int32_t fLeft
smaller x-axis bounds
int32_t fRight
larger x-axis bounds
constexpr int32_t width() const
constexpr int32_t height() const