Lines Matching refs:mesh
228 void GrOpFlushState::drawMesh(const GrSimpleMesh& mesh) {
229 SkASSERT(mesh.fIsInitialized);
230 if (!mesh.fIndexBuffer) {
231 this->bindBuffers(nullptr, nullptr, mesh.fVertexBuffer);
232 this->draw(mesh.fVertexCount, mesh.fBaseVertex);
234 this->bindBuffers(mesh.fIndexBuffer, nullptr, mesh.fVertexBuffer, mesh.fPrimitiveRestart);
235 if (0 == mesh.fPatternRepeatCount) {
236 this->drawIndexed(mesh.fIndexCount, mesh.fBaseIndex, mesh.fMinIndexValue,
237 mesh.fMaxIndexValue, mesh.fBaseVertex);
239 this->drawIndexPattern(mesh.fIndexCount, mesh.fPatternRepeatCount,
240 mesh.fMaxPatternRepetitionsInIndexBuffer, mesh.fVertexCount,
241 mesh.fBaseVertex);