Lines Matching refs:flushInfo
329 FlushInfo flushInfo; in onPrepareDraws() local
330 flushInfo.fPipeline = pipe.fPipeline; in onPrepareDraws()
331 flushInfo.fFixedDynamicState = pipe.fFixedDynamicState; in onPrepareDraws()
354 flushInfo.fGeometryProcessor = GrDistanceFieldPathGeoProc::Make( in onPrepareDraws()
365 flushInfo.fGeometryProcessor = GrBitmapTextGeoProc::Make( in onPrepareDraws()
372 const size_t kVertexStride = flushInfo.fGeometryProcessor->vertexStride(); in onPrepareDraws()
381 &flushInfo.fVertexBuffer, in onPrepareDraws()
382 &flushInfo.fVertexOffset)}; in onPrepareDraws()
383 flushInfo.fIndexBuffer = target->resourceProvider()->refQuadIndexBuffer(); in onPrepareDraws()
384 if (!vertices.fPtr || !flushInfo.fIndexBuffer) { in onPrepareDraws()
389 flushInfo.fInstancesToFlush = 0; in onPrepareDraws()
453 &flushInfo, in onPrepareDraws()
477 &flushInfo, in onPrepareDraws()
493 flushInfo.fInstancesToFlush++; in onPrepareDraws()
496 this->flush(target, &flushInfo); in onPrepareDraws()
499 bool addToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo, GrDrawOpAtlas* atlas, in addToAtlas() argument
513 this->flush(target, flushInfo); in addToAtlas()
522 bool addDFPathToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo, in addDFPathToAtlas() argument
613 if (!this->addToAtlas(target, flushInfo, atlas, in addDFPathToAtlas()
649 bool addBMPathToAtlas(GrMeshDrawOp::Target* target, FlushInfo* flushInfo, in addBMPathToAtlas() argument
715 if (!this->addToAtlas(target, flushInfo, atlas, in addBMPathToAtlas()
775 void flush(GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const { in flush()
776 GrGeometryProcessor* gp = flushInfo->fGeometryProcessor.get(); in flush()
781 flushInfo->fFixedDynamicState->fPrimitiveProcessorTextures[i] = proxies[i].get(); in flush()
794 if (flushInfo->fInstancesToFlush) { in flush()
797 static_cast<int>(flushInfo->fIndexBuffer->gpuMemorySize() / sizeof(uint16_t) / 6); in flush()
798 mesh->setIndexedPatterned(flushInfo->fIndexBuffer, kIndicesPerQuad, kVerticesPerQuad, in flush()
799 flushInfo->fInstancesToFlush, maxInstancesPerDraw); in flush()
800 mesh->setVertexData(flushInfo->fVertexBuffer, flushInfo->fVertexOffset); in flush()
801 target->draw(flushInfo->fGeometryProcessor, flushInfo->fPipeline, in flush()
802 flushInfo->fFixedDynamicState, mesh); in flush()
803 flushInfo->fVertexOffset += kVerticesPerQuad * flushInfo->fInstancesToFlush; in flush()
804 flushInfo->fInstancesToFlush = 0; in flush()