Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
GrEagerVertexAllocator Class Referenceabstract

#include <GrEagerVertexAllocator.h>

Inheritance diagram for GrEagerVertexAllocator:
GrCpuVertexAllocator GrEagerDynamicVertexAllocator TriangulatorBenchmark PathToTrianglesBench TriangulateInnerFanBench

Public Member Functions

virtual void * lock (size_t stride, int eagerCount)=0
 
virtual void unlock (int actualCount)=0
 
virtual ~GrEagerVertexAllocator ()
 
skgpu::VertexWriter lockWriter (size_t stride, int eagerCount)
 

Detailed Description

Definition at line 25 of file GrEagerVertexAllocator.h.

Constructor & Destructor Documentation

◆ ~GrEagerVertexAllocator()

virtual GrEagerVertexAllocator::~GrEagerVertexAllocator ( )
inlinevirtual

Definition at line 31 of file GrEagerVertexAllocator.h.

31{}

Member Function Documentation

◆ lock()

virtual void * GrEagerVertexAllocator::lock ( size_t  stride,
int  eagerCount 
)
pure virtual

◆ lockWriter()

skgpu::VertexWriter GrEagerVertexAllocator::lockWriter ( size_t  stride,
int  eagerCount 
)
inline

Definition at line 33 of file GrEagerVertexAllocator.h.

33 {
34 void* p = this->lock(stride, eagerCount);
35 return p ? skgpu::VertexWriter{p, stride * eagerCount} : skgpu::VertexWriter{};
36 }
virtual void * lock(size_t stride, int eagerCount)=0

◆ unlock()

virtual void GrEagerVertexAllocator::unlock ( int  actualCount)
pure virtual

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