Lines Matching refs:indexBuffer
66 sk_sp<const GrBuffer> indexBuffer,
299 sk_sp<const GrBuffer> indexBuffer; in drawVolatile() local
303 indices = target->makeIndexSpace(fIndexCount, &indexBuffer, &firstIndex); in drawVolatile()
318 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), firstVertex, indexBuffer, in drawVolatile()
348 sk_sp<GrGpuBuffer> indexBuffer = in drawNonVolatile() local
352 if (vertexBuffer && (!this->isIndexed() || indexBuffer)) { in drawNonVolatile()
354 std::move(indexBuffer), 0); in drawNonVolatile()
371 indexBuffer = rp->createBuffer( in drawNonVolatile()
373 indices = indexBuffer ? static_cast<uint16_t*>(indexBuffer->map()) : nullptr; in drawNonVolatile()
389 if (indexBuffer) { in drawNonVolatile()
390 indexBuffer->unmap(); in drawNonVolatile()
395 rp->assignUniqueKeyToResource(indexKey, indexBuffer.get()); in drawNonVolatile()
398 this->drawVertices(target, std::move(gp), std::move(vertexBuffer), 0, std::move(indexBuffer), in drawNonVolatile()
498 sk_sp<const GrBuffer> indexBuffer, in drawVertices() argument
502 mesh->setIndexed(std::move(indexBuffer), fIndexCount, firstIndex, 0, fVertexCount - 1, in drawVertices()