Lines Matching refs:SkVertices
32 struct SkVertices::Desc {
40 struct SkVertices::Sizes {
71 fTotal = safe.add(sizeof(SkVertices), in Sizes()
98 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder()
100 bool hasTexs = SkToBool(builderFlags & SkVertices::kHasTexCoords_BuilderFlag); in Builder()
101 bool hasColors = SkToBool(builderFlags & SkVertices::kHasColors_BuilderFlag); in Builder()
105 SkVertices::Builder::Builder(const Desc& desc) { in Builder()
109 void SkVertices::Builder::init(const Desc& desc) { in init()
121 fVertices.reset(new (storage) SkVertices); in init()
124 char* ptr = (char*)storage + sizeof(SkVertices); in init()
145 sk_sp<SkVertices> SkVertices::Builder::detach() { in detach()
175 SkPoint* SkVertices::Builder::positions() { in positions()
179 SkPoint* SkVertices::Builder::texCoords() { in texCoords()
183 SkColor* SkVertices::Builder::colors() { in colors()
187 uint16_t* SkVertices::Builder::indices() { in indices()
199 sk_sp<SkVertices> SkVertices::MakeCopy(VertexMode mode, int vertexCount, in MakeCopy()
220 size_t SkVertices::approximateSize() const { in approximateSize()
224 SkVertices::Sizes SkVertices::getSizes() const { in getSizes()
250 SkVertices::Sizes sizes = fVertices->getSizes(); in encode()
266 sk_sp<SkVertices> SkVerticesPriv::Decode(SkReadBuffer& buffer) { in Decode()
275 auto decode = [](SkReadBuffer& buffer) -> sk_sp<SkVertices> { in Decode()
283 const SkVertices::VertexMode mode = safe.checkLE<SkVertices::VertexMode>( in Decode()
284 packed & kMode_Mask, SkVertices::kLast_VertexMode); in Decode()
294 const SkVertices::Desc desc{mode, vertexCount, indexCount, hasTexs, hasColors}; in Decode()
295 SkVertices::Sizes sizes(desc); in Decode()
300 SkVertices::Builder builder(desc); in Decode()
315 size_t isize = (mode == SkVertices::kTriangleFan_VertexMode) ? sizes.fBuilderTriFanISize in Decode()
343 void SkVertices::operator delete(void* p) { in operator delete()