8#ifndef GrWindowRectangles_DEFINED
9#define GrWindowRectangles_DEFINED
24 bool empty()
const {
return !fCount; }
25 int count()
const {
return fCount; }
40 const Rec* rec()
const {
return fCount <= 1 ? nullptr :
fRec; }
88 windows =
result.fRec->fData;
90 windows = &
result.fLocalWindow;
92 for (
int i = 0;
i < fCount; ++
i) {
114 if (fCount != that.fCount) {
117 if (fCount > 1 &&
fRec == that.
fRec) {
120 return !fCount || !memcmp(this->
data(), that.
data(),
sizeof(
SkIRect) * fCount);
static void SkSafeUnref(T *obj)
bool operator==(const GrWindowRectangles &) const
bool operator!=(const GrWindowRectangles &that) const
const SkIRect * data() const
GrWindowRectangles makeOffset(int dx, int dy) const
SkIRect & addWindow(const SkIRect &window)
static constexpr int kMaxWindows
GrWindowRectangles(const GrWindowRectangles &that)
GrWindowRectangles & operator=(const GrWindowRectangles &)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
SkIRect fData[kMaxWindows]
Rec(const SkIRect *windows, int numWindows)
constexpr SkIRect makeOffset(int32_t dx, int32_t dy) const