• Home
  • Raw
  • Download

Lines Matching refs:flushInfo

234     FlushInfo flushInfo;  in onPrepareDraws()  local
235 flushInfo.fPrimProcProxies = primProcProxies; in onPrepareDraws()
236 flushInfo.fIndexBuffer = resourceProvider->refNonAAQuadIndexBuffer(); in onPrepareDraws()
239 flushInfo.fGeometryProcessor = this->setupDfProcessor(target->allocator(), in onPrepareDraws()
247 flushInfo.fGeometryProcessor = GrBitmapTextGeoProc::Make( in onPrepareDraws()
252 const int vertexStride = (int)flushInfo.fGeometryProcessor->vertexStride(); in onPrepareDraws()
272 &flushInfo.fVertexBuffer, in onPrepareDraws()
273 &flushInfo.fVertexOffset); in onPrepareDraws()
275 if (!vertices || !flushInfo.fVertexBuffer) { in onPrepareDraws()
306 flushInfo.fGlyphsToFlush += glyphsRegenerated; in onPrepareDraws()
314 this->createDrawForGeneratedGlyphs(target, &flushInfo); in onPrepareDraws()
337 GrMeshDrawOp::Target* target, FlushInfo* flushInfo) const { in createDrawForGeneratedGlyphs()
338 if (!flushInfo->fGlyphsToFlush) { in createDrawForGeneratedGlyphs()
344 GrGeometryProcessor* gp = flushInfo->fGeometryProcessor; in createDrawForGeneratedGlyphs()
358 flushInfo->fPrimProcProxies[i] = views[i].proxy(); in createDrawForGeneratedGlyphs()
363 for (int d = 0; d < flushInfo->fNumDraws; ++d) { in createDrawForGeneratedGlyphs()
364 flushInfo->fPrimProcProxies[i]->ref(); in createDrawForGeneratedGlyphs()
381 int maxGlyphsPerDraw = static_cast<int>(flushInfo->fIndexBuffer->size() / sizeof(uint16_t) / 6); in createDrawForGeneratedGlyphs()
383 mesh->setIndexedPatterned(flushInfo->fIndexBuffer, kIndicesPerGlyph, flushInfo->fGlyphsToFlush, in createDrawForGeneratedGlyphs()
384 maxGlyphsPerDraw, flushInfo->fVertexBuffer, kVerticesPerGlyph, in createDrawForGeneratedGlyphs()
385 flushInfo->fVertexOffset); in createDrawForGeneratedGlyphs()
386 target->recordDraw(flushInfo->fGeometryProcessor, mesh, 1, flushInfo->fPrimProcProxies, in createDrawForGeneratedGlyphs()
388 flushInfo->fVertexOffset += kVerticesPerGlyph * flushInfo->fGlyphsToFlush; in createDrawForGeneratedGlyphs()
389 flushInfo->fGlyphsToFlush = 0; in createDrawForGeneratedGlyphs()
390 ++flushInfo->fNumDraws; in createDrawForGeneratedGlyphs()