Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
skgpu::ganesh::PathTessellator Class Referenceabstract

#include <PathTessellator.h>

Inheritance diagram for skgpu::ganesh::PathTessellator:
skgpu::ganesh::PathCurveTessellator skgpu::ganesh::PathWedgeTessellator

Classes

struct  PathDrawList
 

Public Types

using PatchAttribs = tess::PatchAttribs
 

Public Member Functions

virtual ~PathTessellator ()
 
PatchAttribs patchAttribs () const
 
virtual void prepare (GrMeshDrawTarget *target, const SkMatrix &shaderMatrix, const PathDrawList &pathDrawList, int totalCombinedPathVerbCnt)=0
 
virtual void draw (GrOpFlushState *flushState) const =0
 

Protected Member Functions

 PathTessellator (bool infinitySupport, PatchAttribs attribs)
 

Protected Attributes

PatchAttribs fAttribs
 
GrVertexChunkArray fVertexChunkArray
 
int fMaxVertexCount = 0
 
sk_sp< const GrGpuBufferfFixedVertexBuffer
 
sk_sp< const GrGpuBufferfFixedIndexBuffer
 

Detailed Description

Definition at line 26 of file PathTessellator.h.

Member Typedef Documentation

◆ PatchAttribs

Definition at line 28 of file PathTessellator.h.

Constructor & Destructor Documentation

◆ ~PathTessellator()

virtual skgpu::ganesh::PathTessellator::~PathTessellator ( )
inlinevirtual

Definition at line 54 of file PathTessellator.h.

54{}

◆ PathTessellator()

skgpu::ganesh::PathTessellator::PathTessellator ( bool  infinitySupport,
PatchAttribs  attribs 
)
inlineprotected

Definition at line 69 of file PathTessellator.h.

69 : fAttribs(attribs) {
70 if (!infinitySupport) {
71 fAttribs |= PatchAttribs::kExplicitCurveType;
72 }
73 }

Member Function Documentation

◆ draw()

virtual void skgpu::ganesh::PathTessellator::draw ( GrOpFlushState flushState) const
pure virtual

◆ patchAttribs()

PatchAttribs skgpu::ganesh::PathTessellator::patchAttribs ( ) const
inline

Definition at line 56 of file PathTessellator.h.

56{ return fAttribs; }

◆ prepare()

virtual void skgpu::ganesh::PathTessellator::prepare ( GrMeshDrawTarget target,
const SkMatrix shaderMatrix,
const PathDrawList pathDrawList,
int  totalCombinedPathVerbCnt 
)
pure virtual

Member Data Documentation

◆ fAttribs

PatchAttribs skgpu::ganesh::PathTessellator::fAttribs
protected

Definition at line 75 of file PathTessellator.h.

◆ fFixedIndexBuffer

sk_sp<const GrGpuBuffer> skgpu::ganesh::PathTessellator::fFixedIndexBuffer
protected

Definition at line 83 of file PathTessellator.h.

◆ fFixedVertexBuffer

sk_sp<const GrGpuBuffer> skgpu::ganesh::PathTessellator::fFixedVertexBuffer
protected

Definition at line 82 of file PathTessellator.h.

◆ fMaxVertexCount

int skgpu::ganesh::PathTessellator::fMaxVertexCount = 0
protected

Definition at line 80 of file PathTessellator.h.

◆ fVertexChunkArray

GrVertexChunkArray skgpu::ganesh::PathTessellator::fVertexChunkArray
protected

Definition at line 77 of file PathTessellator.h.


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