Lines Matching refs:fVertices
73 fVertices.reset(new (storage) SkVertices); in init()
78 fVertices->fPositions = (SkPoint*)ptr; ptr += sizes.fVSize; in init()
79 fVertices->fTexs = sizes.fTSize ? (SkPoint*)ptr : nullptr; ptr += sizes.fTSize; in init()
80 fVertices->fColors = sizes.fCSize ? (SkColor*)ptr : nullptr; ptr += sizes.fCSize; in init()
81 fVertices->fIndices = sizes.fISize ? (uint16_t*)ptr : nullptr; in init()
82 fVertices->fVertexCnt = vertexCount; in init()
83 fVertices->fIndexCnt = indexCount; in init()
84 fVertices->fMode = mode; in init()
89 if (fVertices) { in detach()
90 fVertices->fBounds.set(fVertices->fPositions, fVertices->fVertexCnt); in detach()
91 fVertices->fUniqueID = next_id(); in detach()
92 return std::move(fVertices); // this will null fVertices after the return in detach()
98 return fVertices ? fVertices->vertexCount() : 0; in vertexCount()
102 return fVertices ? fVertices->indexCount() : 0; in indexCount()
106 return fVertices ? const_cast<SkPoint*>(fVertices->positions()) : nullptr; in positions()
110 return fVertices ? const_cast<SkPoint*>(fVertices->texCoords()) : nullptr; in texCoords()
114 return fVertices ? const_cast<SkColor*>(fVertices->colors()) : nullptr; in colors()
118 return fVertices ? const_cast<uint16_t*>(fVertices->indices()) : nullptr; in indices()