Lines Matching refs:flushInfo
308 FlushInfo flushInfo; in onPrepareDraws() local
309 flushInfo.fPipeline = pipe.fPipeline; in onPrepareDraws()
310 flushInfo.fFixedDynamicState = pipe.fFixedDynamicState; in onPrepareDraws()
314 flushInfo.fGeometryProcessor = this->setupDfProcessor(*target->caps().shaderCaps(), in onPrepareDraws()
319 flushInfo.fGeometryProcessor = GrBitmapTextGeoProc::Make( in onPrepareDraws()
324 flushInfo.fGlyphsToFlush = 0; in onPrepareDraws()
325 size_t vertexStride = flushInfo.fGeometryProcessor->vertexStride(); in onPrepareDraws()
330 &flushInfo.fVertexBuffer, &flushInfo.fVertexOffset); in onPrepareDraws()
331 flushInfo.fIndexBuffer = target->resourceProvider()->refQuadIndexBuffer(); in onPrepareDraws()
332 if (!vertices || !flushInfo.fVertexBuffer) { in onPrepareDraws()
382 flushInfo.fGlyphsToFlush += result.fGlyphsRegenerated; in onPrepareDraws()
384 this->flush(target, &flushInfo); in onPrepareDraws()
389 this->flush(target, &flushInfo); in onPrepareDraws()
392 void GrAtlasTextOp::flush(GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const { in flush()
393 if (!flushInfo->fGlyphsToFlush) { in flush()
399 GrGeometryProcessor* gp = flushInfo->fGeometryProcessor.get(); in flush()
409 flushInfo->fFixedDynamicState->fPrimitiveProcessorTextures[i] = proxies[i].get(); in flush()
427 static_cast<int>(flushInfo->fIndexBuffer->gpuMemorySize() / sizeof(uint16_t) / 6); in flush()
429 mesh->setIndexedPatterned(flushInfo->fIndexBuffer, kIndicesPerGlyph, kVerticesPerGlyph, in flush()
430 flushInfo->fGlyphsToFlush, maxGlyphsPerDraw); in flush()
431 mesh->setVertexData(flushInfo->fVertexBuffer, flushInfo->fVertexOffset); in flush()
432 target->draw(flushInfo->fGeometryProcessor, flushInfo->fPipeline, flushInfo->fFixedDynamicState, in flush()
434 flushInfo->fVertexOffset += kVerticesPerGlyph * flushInfo->fGlyphsToFlush; in flush()
435 flushInfo->fGlyphsToFlush = 0; in flush()