#include <BoundsManager.h>
Definition at line 121 of file BoundsManager.h.
◆ ~GridBoundsManager()
skgpu::graphite::GridBoundsManager::~GridBoundsManager |
( |
| ) |
|
|
inlineoverride |
◆ getMostRecentDraw()
Implements skgpu::graphite::BoundsManager.
Definition at line 165 of file BoundsManager.h.
165 {
167
168 auto ltrb = this->getGridCoords(
bounds);
170 int h = ltrb[3] - ltrb[1];
171 int w = ltrb[2] - ltrb[0];
172
174 for (
int y = 0;
y <=
h; ++
y ) {
175 for (
int x = 0;
x <=
w; ++
x) {
179 }
180 }
182 }
183
185 }
static constexpr MonotonicValue First()
static float max(float r, float g, float b)
Optional< SkRect > bounds
MonotonicValue< CompressedPaintersOrderSequence > CompressedPaintersOrder
◆ Make() [1/2]
Definition at line 125 of file BoundsManager.h.
126 {
129
130 return std::unique_ptr<GridBoundsManager>(new GridBoundsManager(deviceSize, gridSize));
131 }
constexpr int32_t width() const
constexpr int32_t height() const
◆ Make() [2/2]
Definition at line 133 of file BoundsManager.h.
133 {
134 return Make(deviceSize, {gridSize, gridSize});
135 }
static std::unique_ptr< GridBoundsManager > Make(const SkISize &deviceSize, const SkISize &gridSize)
◆ MakeRes()
Definition at line 137 of file BoundsManager.h.
139 {
142
144 if (maxGridSize > 0 && gridWidth > maxGridSize) {
145
146
147 gridWidth = maxGridSize;
148 } else {
149
150 deviceSize.
fWidth = gridWidth * gridCellSize;
151 }
152
154 if (maxGridSize > 0 && gridHeight > maxGridSize) {
155 gridHeight = maxGridSize;
156 } else {
157 deviceSize.
fHeight = gridHeight * gridCellSize;
158 }
159 return Make(deviceSize, {gridWidth, gridHeight});
160 }
#define SkScalarCeilToInt(x)
◆ recordDraw()
Implements skgpu::graphite::BoundsManager.
Definition at line 187 of file BoundsManager.h.
187 {
189
190 auto ltrb = this->getGridCoords(
bounds);
192 int h = ltrb[3] - ltrb[1];
193 int w = ltrb[2] - ltrb[0];
194
195 for (
int y = 0;
y <=
h; ++
y) {
196 for (
int x = 0;
x <=
w; ++
x) {
198 if (order > v) {
200 }
201 }
203 }
204 }
◆ reset()
void skgpu::graphite::GridBoundsManager::reset |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: