Home | History | Annotate | Download | only in batches

Lines Matching defs:FlushInfo

179     struct FlushInfo {
212 FlushInfo flushInfo;
222 &flushInfo.fVertexOffset);
223 flushInfo.fVertexBuffer.reset(SkRef(vertexBuffer));
224 flushInfo.fIndexBuffer.reset(target->resourceProvider()->refQuadIndexBuffer());
225 if (!vertices || !flushInfo.fIndexBuffer) {
230 flushInfo.fInstancesToFlush = 0;
263 &flushInfo,
292 flushInfo.fInstancesToFlush++;
295 this->flush(target, &flushInfo);
320 FlushInfo* flushInfo,
407 this->flush(target, flushInfo);
491 void flush(GrVertexBatch::Target* target, FlushInfo* flushInfo) const {
493 int maxInstancesPerDraw = flushInfo->fIndexBuffer->maxQuads();
494 vertices.initInstanced(kTriangles_GrPrimitiveType, flushInfo->fVertexBuffer,
495 flushInfo->fIndexBuffer, flushInfo->fVertexOffset, kVerticesPerQuad,
496 kIndicesPerQuad, flushInfo->fInstancesToFlush, maxInstancesPerDraw);
498 flushInfo->fVertexOffset += kVerticesPerQuad * flushInfo->fInstancesToFlush;
499 flushInfo->fInstancesToFlush = 0;