Flutter Engine
The Flutter Engine
|
#include <SubRunData.h>
Public Member Functions | |
SubRunData ()=delete | |
SubRunData (const SubRunData &subRun)=default | |
SubRunData (SubRunData &&)=delete | |
SubRunData (const sktext::gpu::AtlasSubRun *subRun, sk_sp< SkRefCnt > supportDataKeepAlive, Rect deviceBounds, const SkM44 &deviceToLocal, int startGlyphIndex, int glyphCount, Recorder *recorder, sktext::gpu::RendererData rendererData) | |
~SubRunData ()=default | |
SubRunData & | operator= (SubRunData &&)=delete |
SubRunData & | operator= (const SubRunData &that)=default |
Rect | bounds () const |
const SkM44 & | deviceToLocal () const |
const sktext::gpu::AtlasSubRun * | subRun () const |
int | startGlyphIndex () const |
int | glyphCount () const |
Recorder * | recorder () const |
const sktext::gpu::RendererData & | rendererData () const |
SubRunData represents an AtlasSubRun subspan for which per-pixel coverage data comes from a persistent glyph atlas texture.
The bounds() represent the bounds of the entire AtlasSubRun and does not directly map to the local coordinates of this particular subspan. Rather, the dimensions and offset coordinates of a subspan are defined in a coordinate space that is partially transformed by a decomposition of the local-to-device matrix computed by the AtlasSubRun per instance. The transform of the draw is the rest of the decomposed transform (often only a translation) that maps this intermediate space to the device-space coordinates of the draw.
The local coordinates used in shading are derived by transforming the final device coordinates using the inverse of the local-to-device matrix.
Definition at line 35 of file SubRunData.h.
|
delete |
|
default |
|
delete |
|
inline |
Definition at line 41 of file SubRunData.h.
|
default |
|
inline |
Definition at line 66 of file SubRunData.h.
|
inline |
Definition at line 69 of file SubRunData.h.
|
inline |
Definition at line 74 of file SubRunData.h.
|
default |
|
delete |
|
inline |
Definition at line 75 of file SubRunData.h.
|
inline |
Definition at line 76 of file SubRunData.h.
|
inline |
Definition at line 73 of file SubRunData.h.
|
inline |
Definition at line 72 of file SubRunData.h.