Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
skgpu::graphite::SubRunData Class Reference

#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
 
SubRunDataoperator= (SubRunData &&)=delete
 
SubRunDataoperator= (const SubRunData &that)=default
 
Rect bounds () const
 
const SkM44deviceToLocal () const
 
const sktext::gpu::AtlasSubRunsubRun () const
 
int startGlyphIndex () const
 
int glyphCount () const
 
Recorderrecorder () const
 
const sktext::gpu::RendererDatarendererData () const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SubRunData() [1/4]

skgpu::graphite::SubRunData::SubRunData ( )
delete

◆ SubRunData() [2/4]

skgpu::graphite::SubRunData::SubRunData ( const SubRunData subRun)
default

◆ SubRunData() [3/4]

skgpu::graphite::SubRunData::SubRunData ( SubRunData &&  )
delete

◆ SubRunData() [4/4]

skgpu::graphite::SubRunData::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 
)
inline

Definition at line 41 of file SubRunData.h.

49 : fSubRun(subRun)
50 , fSupportDataKeepAlive(std::move(supportDataKeepAlive))
51 , fBounds(deviceBounds)
52 , fDeviceToLocal(deviceToLocal)
53 , fStartGlyphIndex(startGlyphIndex)
54 , fGlyphCount(glyphCount)
55 , fRecorder(recorder)
56 , fRendererData(rendererData) {}
const sktext::gpu::AtlasSubRun * subRun() const
Definition SubRunData.h:72
const SkM44 & deviceToLocal() const
Definition SubRunData.h:69
Recorder * recorder() const
Definition SubRunData.h:75
const sktext::gpu::RendererData & rendererData() const
Definition SubRunData.h:76

◆ ~SubRunData()

skgpu::graphite::SubRunData::~SubRunData ( )
default

Member Function Documentation

◆ bounds()

Rect skgpu::graphite::SubRunData::bounds ( ) const
inline

Definition at line 66 of file SubRunData.h.

66{ return fBounds; }

◆ deviceToLocal()

const SkM44 & skgpu::graphite::SubRunData::deviceToLocal ( ) const
inline

Definition at line 69 of file SubRunData.h.

69{ return fDeviceToLocal; }

◆ glyphCount()

int skgpu::graphite::SubRunData::glyphCount ( ) const
inline

Definition at line 74 of file SubRunData.h.

74{ return fGlyphCount; }

◆ operator=() [1/2]

SubRunData & skgpu::graphite::SubRunData::operator= ( const SubRunData that)
default

◆ operator=() [2/2]

SubRunData & skgpu::graphite::SubRunData::operator= ( SubRunData &&  )
delete

◆ recorder()

Recorder * skgpu::graphite::SubRunData::recorder ( ) const
inline

Definition at line 75 of file SubRunData.h.

75{ return fRecorder; }

◆ rendererData()

const sktext::gpu::RendererData & skgpu::graphite::SubRunData::rendererData ( ) const
inline

Definition at line 76 of file SubRunData.h.

76{ return fRendererData; }

◆ startGlyphIndex()

int skgpu::graphite::SubRunData::startGlyphIndex ( ) const
inline

Definition at line 73 of file SubRunData.h.

73{ return fStartGlyphIndex; }

◆ subRun()

const sktext::gpu::AtlasSubRun * skgpu::graphite::SubRunData::subRun ( ) const
inline

Definition at line 72 of file SubRunData.h.

72{ return fSubRun; }

The documentation for this class was generated from the following file: