Lines Matching defs:count
51 // Appends 'count' contiguous vertices. These vertices are not guaranteed to be contiguous with
53 SK_ALWAYS_INLINE skgpu::VertexWriter appendVertices(int count) {
54 SkASSERT(count > 0);
55 if (fCurrChunkVertexCount + count > fCurrChunkVertexCapacity && !this->allocChunk(count)) {
59 SkASSERT(fCurrChunkVertexCount + count <= fCurrChunkVertexCapacity);
60 fCurrChunkVertexCount += count;
61 SkDEBUGCODE(fLastAppendAmount = count;)
63 fCurrChunkVertexWriter.makeOffset(fStride * count));
68 // Pops the most recent 'count' contiguous vertices. Since there is no guarantee of contiguity
69 // between appends, 'count' may be no larger than the most recent call to appendVertices().
70 void popVertices(int count) {
71 SkASSERT(count <= fLastAppendAmount);
73 SkASSERT(count >= 0);
74 fCurrChunkVertexCount -= count;
75 fCurrChunkVertexWriter = fCurrChunkVertexWriter.makeOffset(fStride * -count);
76 SkDEBUGCODE(fLastAppendAmount -= count;)