Lines Matching refs:mesh
48 Mesh& mesh = fMeshes.push_back(); in GrDrawVerticesOp() local
49 mesh.fColor = color; in GrDrawVerticesOp()
50 mesh.fViewMatrix = viewMatrix; in GrDrawVerticesOp()
51 mesh.fVertices = std::move(vertices); in GrDrawVerticesOp()
52 mesh.fIgnoreTexCoords = false; in GrDrawVerticesOp()
53 mesh.fIgnoreColors = false; in GrDrawVerticesOp()
54 mesh.fIgnoreBones = false; in GrDrawVerticesOp()
56 if (mesh.fVertices->hasBones() && bones) { in GrDrawVerticesOp()
58 mesh.fVertices = mesh.fVertices->applyBones(bones, boneCount); in GrDrawVerticesOp()
70 if (mesh.hasPerVertexColors()) { in GrDrawVerticesOp()
73 if (mesh.hasExplicitLocalCoords()) { in GrDrawVerticesOp()
76 if (mesh.hasBones()) { in GrDrawVerticesOp()
82 if (!mesh.fVertices->hasBones() && boneCount == 1) { in GrDrawVerticesOp()
85 mesh.fViewMatrix.preConcat(worldTransform); in GrDrawVerticesOp()
99 const SkRect originalBounds = bones[0].mapRect(mesh.fVertices->bounds()); in GrDrawVerticesOp()
106 mesh.fViewMatrix, in GrDrawVerticesOp()
110 this->setTransformedBounds(mesh.fVertices->bounds(), in GrDrawVerticesOp()
111 mesh.fViewMatrix, in GrDrawVerticesOp()
366 const Mesh& mesh = fMeshes[i]; in fillBuffers() local
370 int indexCount = mesh.fVertices->indexCount(); in fillBuffers()
372 *indices++ = mesh.fVertices->indices()[j] + vertexOffset; in fillBuffers()
377 int vertexCount = mesh.fVertices->vertexCount(); in fillBuffers()
378 const SkPoint* positions = mesh.fVertices->positions(); in fillBuffers()
379 const SkColor* colors = mesh.fVertices->colors(); in fillBuffers()
380 const SkPoint* localCoords = mesh.fVertices->texCoords(); in fillBuffers()
381 const SkVertices::BoneIndices* boneIndices = mesh.fVertices->boneIndices(); in fillBuffers()
382 const SkVertices::BoneWeights* boneWeights = mesh.fVertices->boneWeights(); in fillBuffers()
384 mesh.fViewMatrix.getType() <= SkMatrix::kTranslate_Mask) && in fillBuffers()
385 mesh.hasPerVertexColors(); in fillBuffers()
396 t = Sk2f(mesh.fViewMatrix.getTranslateX(), mesh.fViewMatrix.getTranslateY()); in fillBuffers()
422 GrColor color = mesh.fColor.toBytes_RGBA(); in fillBuffers()
426 mesh.fViewMatrix.mapPoints(((SkPoint*)verts), &positions[j], 1); in fillBuffers()
431 if (mesh.hasPerVertexColors()) { in fillBuffers()
438 if (mesh.hasExplicitLocalCoords()) { in fillBuffers()
467 GrMesh* mesh = target->allocMesh(this->primitiveType()); in drawVertices() local
469 mesh->setIndexed(std::move(indexBuffer), fIndexCount, firstIndex, 0, fVertexCount - 1, in drawVertices()
472 mesh->setNonIndexedNonInstanced(fVertexCount); in drawVertices()
474 mesh->setVertexData(std::move(vertexBuffer), firstVertex); in drawVertices()
476 target->draw(std::move(gp), pipe.fPipeline, pipe.fFixedDynamicState, mesh); in drawVertices()