Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
skgpu::ganesh::AtlasTextOp::Geometry Struct Reference

#include <AtlasTextOp.h>

Public Member Functions

 Geometry (const sktext::gpu::AtlasSubRun &subRun, const SkMatrix &drawMatrix, SkPoint drawOrigin, SkIRect clipRect, sk_sp< SkRefCnt > &&supportData, const SkPMColor4f &color)
 
void fillVertexData (void *dst, int offset, int count) const
 

Static Public Member Functions

static GeometryMake (const sktext::gpu::AtlasSubRun &subRun, const SkMatrix &drawMatrix, SkPoint drawOrigin, SkIRect clipRect, sk_sp< SkRefCnt > &&supportData, const SkPMColor4f &color, SkArenaAlloc *alloc)
 

Public Attributes

const sktext::gpu::AtlasSubRunfSubRun
 
sk_sp< SkRefCntfSupportDataKeepAlive
 
const SkMatrix fDrawMatrix
 
const SkPoint fDrawOrigin
 
const SkIRect fClipRect
 
SkPMColor4f fColor
 
GeometryfNext {nullptr}
 

Detailed Description

Definition at line 68 of file AtlasTextOp.h.

Constructor & Destructor Documentation

◆ Geometry()

skgpu::ganesh::AtlasTextOp::Geometry::Geometry ( const sktext::gpu::AtlasSubRun subRun,
const SkMatrix drawMatrix,
SkPoint  drawOrigin,
SkIRect  clipRect,
sk_sp< SkRefCnt > &&  supportData,
const SkPMColor4f color 
)
inline

Definition at line 69 of file AtlasTextOp.h.

75 : fSubRun{subRun}
76 , fSupportDataKeepAlive{std::move(supportData)}
77 , fDrawMatrix{drawMatrix}
78 , fDrawOrigin{drawOrigin}
80 , fColor{color} {
82 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
DlColor color
clipRect(r.rect, r.opAA.op(), r.opAA.aa())) template<> void Draw
const sktext::gpu::AtlasSubRun & fSubRun
Definition: AtlasTextOp.h:94
sk_sp< SkRefCnt > fSupportDataKeepAlive
Definition: AtlasTextOp.h:97

Member Function Documentation

◆ fillVertexData()

void skgpu::ganesh::AtlasTextOp::Geometry::fillVertexData ( void *  dst,
int  offset,
int  count 
) const

Definition at line 155 of file AtlasTextOp.cpp.

155 {
156 fSubRun.fillVertexData(
158}
int count
Definition: FontMgrTest.cpp:50
dst
Definition: cp.py:12
SeparatedVector2 offset
uint32_t toBytes_RGBA() const

◆ Make()

auto skgpu::ganesh::AtlasTextOp::Geometry::Make ( const sktext::gpu::AtlasSubRun subRun,
const SkMatrix drawMatrix,
SkPoint  drawOrigin,
SkIRect  clipRect,
sk_sp< SkRefCnt > &&  supportData,
const SkPMColor4f color,
SkArenaAlloc alloc 
)
static

Definition at line 137 of file AtlasTextOp.cpp.

143 {
144 // Bypass the automatic dtor behavior in SkArenaAlloc. I'm leaving this up to the Op to run
145 // all geometry dtors for now.
146 void* geo = alloc->makeBytesAlignedTo(sizeof(Geometry), alignof(Geometry));
147 return new(geo) Geometry{subRun,
148 drawMatrix,
149 drawOrigin,
150 clipRect,
151 std::move(supportData),
152 color};
153}
void * makeBytesAlignedTo(size_t size, size_t align)
Definition: SkArenaAlloc.h:200
Geometry(const sktext::gpu::AtlasSubRun &subRun, const SkMatrix &drawMatrix, SkPoint drawOrigin, SkIRect clipRect, sk_sp< SkRefCnt > &&supportData, const SkPMColor4f &color)
Definition: AtlasTextOp.h:69

Member Data Documentation

◆ fClipRect

const SkIRect skgpu::ganesh::AtlasTextOp::Geometry::fClipRect

Definition at line 104 of file AtlasTextOp.h.

◆ fColor

SkPMColor4f skgpu::ganesh::AtlasTextOp::Geometry::fColor

Definition at line 109 of file AtlasTextOp.h.

◆ fDrawMatrix

const SkMatrix skgpu::ganesh::AtlasTextOp::Geometry::fDrawMatrix

Definition at line 99 of file AtlasTextOp.h.

◆ fDrawOrigin

const SkPoint skgpu::ganesh::AtlasTextOp::Geometry::fDrawOrigin

Definition at line 100 of file AtlasTextOp.h.

◆ fNext

Geometry* skgpu::ganesh::AtlasTextOp::Geometry::fNext {nullptr}

Definition at line 110 of file AtlasTextOp.h.

◆ fSubRun

const sktext::gpu::AtlasSubRun& skgpu::ganesh::AtlasTextOp::Geometry::fSubRun

Definition at line 94 of file AtlasTextOp.h.

◆ fSupportDataKeepAlive

sk_sp<SkRefCnt> skgpu::ganesh::AtlasTextOp::Geometry::fSupportDataKeepAlive

Definition at line 97 of file AtlasTextOp.h.


The documentation for this struct was generated from the following files: