#include <GrVertexChunkArray.h>
Definition at line 41 of file GrVertexChunkArray.h.
◆ GrVertexChunkBuilder()
Definition at line 43 of file GrVertexChunkArray.h.
46 , fChunks(chunks)
48 , fMinVerticesPerChunk(minVerticesPerChunk) {
50 }
◆ ~GrVertexChunkBuilder()
GrVertexChunkBuilder::~GrVertexChunkBuilder |
( |
| ) |
|
Definition at line 12 of file GrVertexChunkArray.cpp.
12 {
13 if (!fChunks->
empty()) {
14 fTarget->
putBackVertices(fCurrChunkVertexCapacity - fCurrChunkVertexCount, fStride);
15 fChunks->
back().
fCount = fCurrChunkVertexCount;
16 }
17}
virtual void putBackVertices(int vertices, size_t vertexStride)=0
◆ appendVertices()
Definition at line 58 of file GrVertexChunkArray.h.
58 {
60 if (fCurrChunkVertexCount +
count > fCurrChunkVertexCapacity && !this->allocChunk(
count)) {
62 return {};
63 }
64 SkASSERT(fCurrChunkVertexCount +
count <= fCurrChunkVertexCapacity);
65 fCurrChunkVertexCount +=
count;
67 return std::exchange(fCurrChunkVertexWriter,
69 }
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
VertexWriter makeOffset(size_t offsetInBytes) const
◆ popVertices()
void GrVertexChunkBuilder::popVertices |
( |
int |
count | ) |
|
|
inline |
◆ stride()
size_t GrVertexChunkBuilder::stride |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: