Lines Matching refs:mesh
151 Mesh& mesh = fMeshes.push_back(); in DrawVerticesOp() local
152 mesh.fColor = color; in DrawVerticesOp()
153 mesh.fViewMatrix = viewMatrix; in DrawVerticesOp()
154 mesh.fVertices = std::move(vertices); in DrawVerticesOp()
155 mesh.fIgnoreTexCoords = false; in DrawVerticesOp()
156 mesh.fIgnoreColors = false; in DrawVerticesOp()
158 if (mesh.fVertices->hasBones() && bones) { in DrawVerticesOp()
160 mesh.fVertices = mesh.fVertices->applyBones(bones, boneCount); in DrawVerticesOp()
166 if (mesh.hasPerVertexColors()) { in DrawVerticesOp()
169 if (mesh.hasExplicitLocalCoords()) { in DrawVerticesOp()
175 if (!mesh.fVertices->hasBones() && boneCount == 1) { in DrawVerticesOp()
178 mesh.fViewMatrix.preConcat(worldTransform); in DrawVerticesOp()
188 this->setTransformedBounds(mesh.fVertices->bounds(), in DrawVerticesOp()
189 mesh.fViewMatrix, in DrawVerticesOp()
416 const Mesh& mesh = fMeshes[i]; in fillBuffers() local
420 int indexCount = mesh.fVertices->indexCount(); in fillBuffers()
422 *indices++ = mesh.fVertices->indices()[j] + vertexOffset; in fillBuffers()
427 int vertexCount = mesh.fVertices->vertexCount(); in fillBuffers()
428 const SkPoint* positions = mesh.fVertices->positions(); in fillBuffers()
429 const SkColor* colors = mesh.fVertices->colors(); in fillBuffers()
430 const SkPoint* localCoords = mesh.fVertices->texCoords(); in fillBuffers()
432 mesh.fViewMatrix.getType() <= SkMatrix::kTranslate_Mask) && in fillBuffers()
433 mesh.hasPerVertexColors(); in fillBuffers()
444 t = Sk2f(mesh.fViewMatrix.getTranslateX(), mesh.fViewMatrix.getTranslateY()); in fillBuffers()
465 GrColor color = mesh.fColor.toBytes_RGBA(); in fillBuffers()
469 mesh.fViewMatrix.mapPoints(((SkPoint*)verts), &positions[j], 1); in fillBuffers()
474 if (mesh.hasPerVertexColors()) { in fillBuffers()
481 if (mesh.hasExplicitLocalCoords()) { in fillBuffers()
500 GrMesh* mesh = target->allocMesh(this->primitiveType()); in drawVertices() local
502 mesh->setIndexed(std::move(indexBuffer), fIndexCount, firstIndex, 0, fVertexCount - 1, in drawVertices()
505 mesh->setNonIndexedNonInstanced(fVertexCount); in drawVertices()
507 mesh->setVertexData(std::move(vertexBuffer), firstVertex); in drawVertices()
508 target->recordDraw(std::move(gp), mesh); in drawVertices()