Lines Matching defs:mesh
54 Mesh& mesh = fMeshes.push_back();
55 mesh.fColor = color;
56 mesh.fViewMatrix = viewMatrix;
57 mesh.fVertices = std::move(vertices);
58 mesh.fFlags = flags;
61 if (mesh.hasPerVertexColors()) {
64 if (mesh.hasExplicitLocalCoords()) {
74 this->setTransformedBounds(mesh.fVertices->bounds(), viewMatrix, HasAABloat::kNo, zeroArea);
175 const Mesh& mesh = fMeshes[i];
177 int indexCount = mesh.fVertices->indexCount();
179 *indices++ = mesh.fVertices->indices()[j] + vertexOffset;
182 int vertexCount = mesh.fVertices->vertexCount();
183 const SkPoint* positions = mesh.fVertices->positions();
184 const SkColor* colors = mesh.fVertices->colors();
185 const SkPoint* localCoords = mesh.fVertices->texCoords();
187 mesh.fViewMatrix.getType() <= SkMatrix::kTranslate_Mask) &&
188 mesh.hasPerVertexColors();
198 t = Sk2f(mesh.fViewMatrix.getTranslateX(), mesh.fViewMatrix.getTranslateY());
213 mesh.fViewMatrix.mapPoints(((SkPoint*)verts), &positions[j], 1);
218 if (mesh.hasPerVertexColors()) {
221 *(uint32_t*)((intptr_t)verts + kColorOffset) = mesh.fColor;
225 if (mesh.hasExplicitLocalCoords()) {
237 GrMesh mesh;
239 mesh.initIndexed(this->primitiveType(), vertexBuffer, indexBuffer, firstVertex, firstIndex,
243 mesh.init(this->primitiveType(), vertexBuffer, firstVertex, fVertexCount);
245 target->draw(gp.get(), mesh);
272 // If either op required explicit local coords or per-vertex colors the combined mesh does. Same
279 // Check whether we are about to acquire a mesh with a different view matrix.