Definition at line 175 of file SkAAClip.cpp.
◆ Alloc()
static RunHead * SkAAClip::RunHead::Alloc |
( |
int |
rowCount, |
|
|
size_t |
dataSize |
|
) |
| |
|
inlinestatic |
Definition at line 193 of file SkAAClip.cpp.
193 {
194 size_t size =
sizeof(RunHead) + rowCount *
sizeof(YOffset) + dataSize;
196 head->fRefCnt.store(1);
197 head->fRowCount = rowCount;
198 head->fDataSize = dataSize;
200 }
static void * sk_malloc_throw(size_t size)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ AllocRect()
static RunHead * SkAAClip::RunHead::AllocRect |
( |
const SkIRect & |
bounds | ) |
|
|
inlinestatic |
Definition at line 213 of file SkAAClip.cpp.
213 {
218 YOffset* yoff =
head->yoffsets();
219 yoff->fY =
bounds.height() - 1;
220 yoff->fOffset = 0;
221 uint8_t* row =
head->data();
224 row[0] = n;
225 row[1] = 0xFF;
227 row += 2;
228 }
230 }
static float min(float r, float g, float b)
Optional< SkRect > bounds
static int ComputeRowSizeForWidth(int width)
static RunHead * Alloc(int rowCount, size_t dataSize)
◆ ComputeRowSizeForWidth()
static int SkAAClip::RunHead::ComputeRowSizeForWidth |
( |
int |
width | ) |
|
|
inlinestatic |
Definition at line 202 of file SkAAClip.cpp.
202 {
203
204 int segments = 0;
206 segments += 1;
209 }
210 return segments * 2;
211 }
◆ data() [1/2]
uint8_t * SkAAClip::RunHead::data |
( |
| ) |
|
|
inline |
◆ data() [2/2]
const uint8_t * SkAAClip::RunHead::data |
( |
| ) |
const |
|
inline |
◆ Iterate()
static Iter SkAAClip::RunHead::Iterate |
( |
const SkAAClip & |
clip | ) |
|
|
inlinestatic |
Definition at line 232 of file SkAAClip.cpp.
232 {
233 const RunHead*
head =
clip.fRunHead;
234 if (!
clip.fRunHead) {
235
236 return Iter();
237 }
238
240 head->yoffsets() +
head->fRowCount);
241 }
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
const SkRect & getBounds() const
SkScalar fTop
smaller y-axis bounds
◆ yoffsets() [1/2]
YOffset * SkAAClip::RunHead::yoffsets |
( |
| ) |
|
|
inline |
Definition at line 180 of file SkAAClip.cpp.
180 {
181 return (YOffset*)((char*)this + sizeof(RunHead));
182 }
◆ yoffsets() [2/2]
const YOffset * SkAAClip::RunHead::yoffsets |
( |
| ) |
const |
|
inline |
Definition at line 183 of file SkAAClip.cpp.
183 {
184 return (const YOffset*)((const char*)this + sizeof(RunHead));
185 }
◆ fDataSize
size_t SkAAClip::RunHead::fDataSize |
◆ fRefCnt
std::atomic<int32_t> SkAAClip::RunHead::fRefCnt |
◆ fRowCount
int32_t SkAAClip::RunHead::fRowCount |
The documentation for this struct was generated from the following file: