8#ifndef GrScissorState_DEFINED
9#define GrScissorState_DEFINED
26 , fRect(
SkIRect::MakeSize(rtDims)) {}
59 return fRTSize == other.fRTSize && fRect == other.fRect;
67 return fRect.
fLeft > 0 || fRect.
fTop > 0 ||
bool relaxTest(const SkISize &logicalDimensions)
bool set(const SkIRect &rect)
bool operator!=(const GrScissorState &other) const
const SkIRect & rect() const
bool intersect(const SkIRect &rect)
bool operator==(const GrScissorState &other) const
GrScissorState(const SkISize &rtDims)
bool intersect(const SkIRect &r)
int32_t fBottom
larger y-axis bounds
int32_t fTop
smaller y-axis bounds
static constexpr SkIRect MakeSize(const SkISize &size)
int32_t fLeft
smaller x-axis bounds
bool contains(int32_t x, int32_t y) const
int32_t fRight
larger x-axis bounds