#include <GrWindowRectangles.h>
Definition at line 14 of file GrWindowRectangles.h.
◆ GrWindowRectangles() [1/2]
GrWindowRectangles::GrWindowRectangles |
( |
| ) |
|
|
inline |
◆ GrWindowRectangles() [2/2]
◆ ~GrWindowRectangles()
GrWindowRectangles::~GrWindowRectangles |
( |
| ) |
|
|
inline |
◆ addWindow() [1/2]
SkIRect & GrWindowRectangles::addWindow |
( |
| ) |
|
|
inline |
Definition at line 98 of file GrWindowRectangles.h.
98 {
100 if (fCount == 0) {
101 fCount = 1;
103 }
104 if (fCount == 1) {
109 }
111}
static constexpr int kMaxWindows
SkIRect fData[kMaxWindows]
◆ addWindow() [2/2]
◆ count()
int GrWindowRectangles::count |
( |
| ) |
const |
|
inline |
◆ data()
const SkIRect * GrWindowRectangles::data |
( |
| ) |
const |
|
inline |
◆ empty()
bool GrWindowRectangles::empty |
( |
| ) |
const |
|
inline |
◆ makeOffset()
Definition at line 79 of file GrWindowRectangles.h.
79 {
81 return *this;
82 }
88 windows =
result.fRec->fData;
89 } else {
90 windows = &
result.fLocalWindow;
91 }
92 for (
int i = 0;
i < fCount; ++
i) {
94 }
96}
const SkIRect * data() const
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
constexpr SkIRect makeOffset(int32_t dx, int32_t dy) const
◆ operator!=()
◆ operator=()
Definition at line 68 of file GrWindowRectangles.h.
68 {
70 fCount = that.fCount;
71 if (fCount <= 1) {
73 } else {
75 }
76 return *this;
77}
◆ operator==()
Definition at line 113 of file GrWindowRectangles.h.
113 {
114 if (fCount != that.fCount) {
115 return false;
116 }
117 if (fCount > 1 &&
fRec == that.
fRec) {
118 return true;
119 }
120 return !fCount || !memcmp(this->
data(), that.
data(),
sizeof(
SkIRect) * fCount);
121}
◆ reset()
void GrWindowRectangles::reset |
( |
| ) |
|
|
inline |
◆ fLocalWindow
SkIRect GrWindowRectangles::fLocalWindow |
◆ fRec
Rec* GrWindowRectangles::fRec |
◆ kMaxWindows
constexpr int GrWindowRectangles::kMaxWindows = 8 |
|
staticconstexpr |
The documentation for this class was generated from the following file: