Flutter Engine
The Flutter Engine
|
#include <CoverageMaskShape.h>
Classes | |
struct | MaskInfo |
Public Member Functions | |
CoverageMaskShape ()=default | |
CoverageMaskShape (const Shape &shape, const TextureProxy *proxy, const SkM44 &deviceToLocal, const MaskInfo &maskInfo) | |
CoverageMaskShape (const CoverageMaskShape &)=default | |
~CoverageMaskShape ()=default | |
CoverageMaskShape & | operator= (CoverageMaskShape &&)=delete |
CoverageMaskShape & | operator= (const CoverageMaskShape &)=default |
Rect | bounds () const |
const SkM44 & | deviceToLocal () const |
const half2 & | textureOrigin () const |
const half2 & | maskSize () const |
const TextureProxy * | textureProxy () const |
bool | inverted () const |
CoverageMaskShape represents a shape for which per-pixel coverage data comes from a texture. This excludes font glyphs that are rendered to a persistent atlas, as those are represented by the SubRunData geometry type.
Coverage masks are defined relative to an intermediate coordinate space between the final device space and the original geometry and shading's local space. For atlases and simple cases this intermediate space is pixel-aligned with the final device space, meaning only an integer translation is necessary to align the mask with where the original geometry would have been rendered into the device. In complex cases, the remaining transform may include rotation, skew, or even perspective that has to be applied after some filter effect.
Regardless, the DrawParams that records the CoverageMaskShape stores this remaining transform as the "local-to-device" tranform, i.e. "local" refers to the mask's coordinate space. The CoverageMaskShape stores the original local-to-device inverse so that it can reconstruct coords for shading. Like other Geometry types, the bounds() returned by CoverageMaskShape are relative to its local space, so they are identical to its mask size.
Definition at line 37 of file CoverageMaskShape.h.
|
default |
|
inline |
Definition at line 55 of file CoverageMaskShape.h.
|
default |
|
default |
|
inline |
Definition at line 76 of file CoverageMaskShape.h.
|
inline |
Definition at line 81 of file CoverageMaskShape.h.
|
inline |
Definition at line 94 of file CoverageMaskShape.h.
|
inline |
Definition at line 88 of file CoverageMaskShape.h.
|
default |
|
delete |
|
inline |
Definition at line 85 of file CoverageMaskShape.h.
|
inline |
Definition at line 91 of file CoverageMaskShape.h.