• Home
  • Raw
  • Download

Lines Matching refs:draw

232     DrawRecord* draw = &fDraws.back();  in concatInstancedDraw()  local
236 if (!draw->isInstanced() || in concatInstancedDraw()
237 draw->verticesPerInstance() != info.verticesPerInstance() || in concatInstancedDraw()
238 draw->indicesPerInstance() != info.indicesPerInstance() || in concatInstancedDraw()
239 draw->fVertexBuffer != vertexBuffer || in concatInstancedDraw()
240 draw->fIndexBuffer != geomSrc.fIndexBuffer || in concatInstancedDraw()
241 draw->fVertexLayout != geomSrc.fVertexLayout) { in concatInstancedDraw()
247 if (draw->startVertex() + draw->vertexCount() != adjustedStartVertex) { in concatInstancedDraw()
251 GrAssert(poolState.fPoolStartVertex == draw->startVertex() + draw->vertexCount()); in concatInstancedDraw()
255 instancesToConcat -= draw->instanceCount(); in concatInstancedDraw()
260 GrDrawState::VertexSize(draw->fVertexLayout); in concatInstancedDraw()
263 draw->adjustInstanceCount(instancesToConcat); in concatInstancedDraw()
303 DrawRecord* draw; in onDraw() local
307 draw = this->recordDraw(info); in onDraw()
308 draw->adjustInstanceCount(-instancesConcated); in onDraw()
313 draw = this->recordDraw(info); in onDraw()
315 draw->fVertexLayout = this->getVertexLayout(); in onDraw()
319 draw->fVertexBuffer = this->getGeomSrc().fVertexBuffer; in onDraw()
324 GrDrawState::VertexSize(draw->fVertexLayout); in onDraw()
326 draw->fVertexBuffer = poolState.fPoolVertexBuffer; in onDraw()
327 draw->adjustStartVertex(poolState.fPoolStartVertex); in onDraw()
333 draw->fVertexBuffer->ref(); in onDraw()
338 draw->fIndexBuffer = this->getGeomSrc().fIndexBuffer; in onDraw()
344 draw->fIndexBuffer = poolState.fPoolIndexBuffer; in onDraw()
345 draw->adjustStartIndex(poolState.fPoolStartIndex); in onDraw()
351 draw->fIndexBuffer->ref(); in onDraw()
353 draw->fIndexBuffer = NULL; in onDraw()
453 const DrawRecord& draw = fDraws[currDraw]; in flushTo() local
454 target->setVertexSourceToBuffer(draw.fVertexLayout, draw.fVertexBuffer); in flushTo()
455 if (draw.isIndexed()) { in flushTo()
456 target->setIndexSourceToBuffer(draw.fIndexBuffer); in flushTo()
458 target->executeDraw(draw); in flushTo()