#include <AtlasTypes.h>
Definition at line 292 of file AtlasTypes.h.
◆ genID()
uint64_t skgpu::AtlasLocator::genID |
( |
| ) |
const |
|
inline |
◆ getUVs()
std::array< uint16_t, 4 > skgpu::AtlasLocator::getUVs |
( |
| ) |
const |
|
inline |
◆ height()
uint16_t skgpu::AtlasLocator::height |
( |
| ) |
const |
|
inline |
Definition at line 323 of file AtlasTypes.h.
323 {
324 return fUVs[3] - fUVs[1];
325 }
◆ insetSrc()
void skgpu::AtlasLocator::insetSrc |
( |
int |
padding | ) |
|
|
inline |
Definition at line 327 of file AtlasTypes.h.
327 {
330
331 fUVs[0] += padding;
332 fUVs[1] += padding;
333 fUVs[2] -= padding;
334 fUVs[3] -= padding;
335 }
◆ invalidatePlotLocator()
void skgpu::AtlasLocator::invalidatePlotLocator |
( |
| ) |
|
|
inline |
◆ pageIndex()
uint32_t skgpu::AtlasLocator::pageIndex |
( |
| ) |
const |
|
inline |
◆ plotIndex()
uint32_t skgpu::AtlasLocator::plotIndex |
( |
| ) |
const |
|
inline |
◆ plotLocator()
◆ topLeft()
SkIPoint skgpu::AtlasLocator::topLeft |
( |
| ) |
const |
|
inline |
Definition at line 309 of file AtlasTypes.h.
309 {
310 return {fUVs[0] & 0x1FFF, fUVs[1]};
311 }
◆ updatePlotLocator()
void skgpu::AtlasLocator::updatePlotLocator |
( |
PlotLocator |
p | ) |
|
|
inline |
Definition at line 337 of file AtlasTypes.h.
337 {
341 fUVs[0] = (fUVs[0] & 0x1FFF) |
page;
342 fUVs[2] = (fUVs[2] & 0x1FFF) |
page;
343 }
◆ updateRect()
Definition at line 345 of file AtlasTypes.h.
345 {
348 fUVs[0] = (fUVs[0] & 0xE000) |
rect.fLeft;
350 fUVs[2] = (fUVs[2] & 0xE000) |
rect.fRight;
351 fUVs[3] =
rect.fBottom;
352 }
sk_sp< SkBlender > blender SkRect rect
◆ width()
uint16_t skgpu::AtlasLocator::width |
( |
| ) |
const |
|
inline |
Definition at line 319 of file AtlasTypes.h.
319 {
320 return fUVs[2] - fUVs[0];
321 }
◆ widthHeight()
SkPoint skgpu::AtlasLocator::widthHeight |
( |
| ) |
const |
|
inline |
Definition at line 313 of file AtlasTypes.h.
313 {
314 auto width = fUVs[2] - fUVs[0],
315 height = fUVs[3] - fUVs[1];
317 }
static constexpr SkPoint Make(float x, float y)
The documentation for this class was generated from the following file: