Home
last modified time | relevance | path

Searched refs:fVertices (Results 1 – 25 of 28) sorted by relevance

12

/external/skia/src/core/
DSkVertices.cpp121 fVertices.reset(new (storage) SkVertices); in init()
133 fVertices->fPositions = (SkPoint*) advance(sizes.fVSize); in init()
134 fVertices->fTexs = (SkPoint*) advance(sizes.fTSize); in init()
135 fVertices->fColors = (SkColor*) advance(sizes.fCSize); in init()
136 fVertices->fIndices = (uint16_t*)advance(sizes.fISize); in init()
138 fVertices->fVertexCount = desc.fVertexCount; in init()
139 fVertices->fIndexCount = desc.fIndexCount; in init()
140 fVertices->fMode = desc.fMode; in init()
146 if (fVertices) { in detach()
147 fVertices->fBounds.setBounds(fVertices->fPositions, fVertices->fVertexCount); in detach()
[all …]
DSkVerticesPriv.h23 SkVertices::VertexMode mode() const { return fVertices->fMode; } in mode()
25 bool hasColors() const { return SkToBool(fVertices->fColors); } in hasColors()
26 bool hasTexCoords() const { return SkToBool(fVertices->fTexs); } in hasTexCoords()
27 bool hasIndices() const { return SkToBool(fVertices->fIndices); } in hasIndices()
29 int vertexCount() const { return fVertices->fVertexCount; } in vertexCount()
30 int indexCount() const { return fVertices->fIndexCount; } in indexCount()
32 const SkPoint* positions() const { return fVertices->fPositions; } in positions()
33 const SkPoint* texCoords() const { return fVertices->fTexs; } in texCoords()
34 const SkColor* colors() const { return fVertices->fColors; } in colors()
35 const uint16_t* indices() const { return fVertices->fIndices; } in indices()
[all …]
DSkPictureData.cpp57 , fVertices(record.getVertices()) in SkPictureData()
198 if (!fVertices.empty()) { in flattenToBuffer()
199 write_tag_size(buffer, SK_PICT_VERTICES_BUFFER_TAG, fVertices.size()); in flattenToBuffer()
200 for (const auto& vert : fVertices) { in flattenToBuffer()
493 new_array_from_buffer(buffer, size, fVertices, SkVerticesPriv::Decode); in parseBufferTag()
DSkPictureData.h154 return read_index_base_1_or_null(reader, fVertices); in getVertices()
177 SkTArray<sk_sp<const SkVertices>> fVertices; variable
DSkPictureRecord.h58 return fVertices; in getVertices()
258 SkTArray<sk_sp<const SkVertices>> fVertices; variable
/external/skia/src/gpu/ganesh/
DGrEagerVertexAllocator.cpp39 SkASSERT(!fLockStride && !fVertices && !fVertexData); in lock()
42 fVertices = sk_malloc_throw(eagerCount * stride); in lock()
45 return fVertices; in lock()
49 SkASSERT(fLockStride && fVertices && !fVertexData); in unlock()
51 fVertices = sk_realloc_throw(fVertices, actualCount * fLockStride); in unlock()
53 fVertexData = GrThreadSafeCache::MakeVertexData(fVertices, actualCount, fLockStride); in unlock()
55 fVertices = nullptr; in unlock()
60 SkASSERT(!fLockStride && !fVertices && fVertexData); in detachVertexData()
DGrThreadSafeCache.h109 const void* vertices() const { return fVertices; } in vertices()
127 sk_free(const_cast<void*>(fVertices)); in reset()
128 fVertices = nullptr; in reset()
138 : fVertices(vertices) in VertexData()
144 : fVertices(nullptr) in VertexData()
150 const void* fVertices; variable
DGrEagerVertexAllocator.h78 SkASSERT(!fLockStride && !fVertices && !fVertexData); in ~GrCpuVertexAllocator()
90 void* fVertices = nullptr; variable
/external/skia/src/gpu/graphite/
DDrawWriter.cpp21 , fVertices() in DrawWriter()
35 if (vertices != fVertices || instances != fInstances || fIndices != indices) { in setTemplate()
43 (isAppendingVertices && fVertices != vertices) || in setTemplate()
49 fVertices = vertices; in setTemplate()
69 SkASSERT(fVertices == vertices); in setTemplate()
85 fCommandList->bindDrawBuffers(fVertices, fInstances, fIndices, {}); in flush()
DRendererProvider.h54 return &fVertices[4*triStrip + 2*hasColors + hasTexCoords]; in vertices()
99 Renderer fVertices[kVerticesCount]; variable
DDrawWriter.h200 BindBufferInfo fVertices; variable
240 , fTarget(target == Target::kVertices ? w.fVertices : w.fInstances) in Appender()
308 w.setTemplate(w.fVertices, {}, {}, 0); in Vertices()
DRendererProvider.cpp65 fVertices[index] = makeFromStep( in RendererProvider()
DDrawCommands.h82 BindBufferInfo fVertices;
/external/skia/src/gpu/graphite/geom/
DGeometry.h52 this->setVertices(std::move(geom.fVertices));
72 case Type::kVertices: this->setVertices(geom.fVertices); break;
92 const SkVertices* vertices() const { SkASSERT(this->isVertices()); return fVertices.get(); } in vertices()
95 return fVertices; in refVertices()
116 fVertices = std::move(vertices); in setVertices()
119 new (&fVertices) sk_sp<SkVertices>(std::move(vertices)); in setVertices()
136 case Type::kVertices: return fVertices->bounds(); in bounds()
151 fVertices.~sk_sp<SkVertices>(); in setType()
160 sk_sp<SkVertices> fVertices; member
/external/skia/src/gpu/ganesh/ops/
DTriangulatingPathRenderer.cpp109 SkASSERT(!fLockStride && !fVertices && !fVertexBuffer && !fVertexData); in ~StaticVertexAllocator()
114 SkASSERT(!fLockStride && !fVertices && !fVertexBuffer && !fVertexData); in lock()
126 fVertices = fVertexBuffer->map(); in lock()
128 if (!fVertices) { in lock()
129 fVertices = sk_malloc_throw(eagerCount * stride); in lock()
133 return fVertices; in lock()
137 SkASSERT(fLockStride && fVertices && fVertexBuffer && !fVertexData); in unlock()
142 fVertexBuffer->updateData(fVertices, in unlock()
146 sk_free(fVertices); in unlock()
152 fVertices = nullptr; in unlock()
[all …]
DDrawMeshOp.cpp522 bool isFromVertices() const { return SkToBool(fVertices); } in isFromVertices()
526 return fVertices.get(); in vertices()
548 return this->isFromVertices() ? fVertices->priv().vertexCount() : fMeshData.vcount; in vertexCount()
553 return fVertices->priv().indices(); in indices()
566 return this->isFromVertices() ? fVertices->priv().indexCount() : fMeshData.icount; in indexCount()
588 sk_sp<SkVertices> fVertices; member in __anon19f680500111::MeshOp::Mesh
595 static_assert(::sk_is_trivially_relocatable<decltype(fVertices)>::value);
644 : fVertices(std::move(vertices)), fViewMatrix(viewMatrix) { in Mesh()
645 SkASSERT(fVertices); in Mesh()
649 fVertices = std::move(that.fVertices); in Mesh()
[all …]
DDefaultPathRenderer.cpp225 uint16_t currentIndex() const { return fCurVert - fVertices; } in currentIndex()
238 fVertices = static_cast<SkPoint*>(fTarget->makeVertexSpaceAtLeast(fVertexStride, in allocNewBuffers()
244 if (!fVertices) { in allocNewBuffers()
265 fVertices = nullptr; in allocNewBuffers()
270 fCurVert = fVertices; in allocNewBuffers()
293 int vertexCount = fCurVert - fVertices; in createMeshAndPutBackReserve()
323 if (fCurVert + vertsNeeded > fVertices + fVerticesInChunk || in ensureSpace()
335 SkASSERT(fSubpathStartPoint == fVertices[fSubpathIndexStart]); in ensureSpace()
372 SkPoint* fVertices; member in __anon566be99f0111::PathGeoBuilder
DGrMeshDrawOp.h66 void* vertices() const { return fVertices; } in vertices()
76 void* fVertices = nullptr;
DGrMeshDrawOp.cpp87 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init()
88 if (!fVertices) { in init()
/external/skia/bench/
DGlyphQuadFillBench.cpp68 fVertices.reset(new char[subRun->vertexStride(drawMatrix) * subRun->glyphCount() * 4]); in onPerCanvasPreDraw()
81 subRun->fillVertexData(fVertices.get(), 0, subRun->glyphCount(), in onDraw()
89 std::unique_ptr<char[]> fVertices; member in DirectMaskGlyphVertexFillBenchmark
/external/skia/src/utils/
DSkShadowUtils.cpp226 return fEntries[i].fVertices; in find()
243 fSize -= fEntries[i].fVertices->approximateSize(); in add()
246 fEntries[i].fVertices = vertices; in add()
255 sk_sp<SkVertices> fVertices; member
315 sk_sp<SkVertices> fVertices; member
334 findContext->fVertices = in FindVisitor()
336 if (findContext->fVertices) { in FindVisitor()
428 bool foundInCache = SkToBool(context.fVertices); in draw_shadow()
430 vertices = std::move(context.fVertices); in draw_shadow()
/external/skia/include/core/
DSkVertices.h68 bool isValid() const { return fVertices != nullptr; } in isValid()
86 sk_sp<SkVertices> fVertices; variable
/external/skia/tools/viewer/
DPatchSlide.cpp367 sk_sp<SkVertices> fVertices[N]; member in __anon33be79600211::PseudoInkSlide
387 fVertices[i] = make_verts(fPath, 30); in draw()
392 canvas->drawVertices(fVertices[i], SkBlendMode::kSrc, fVertsP); in draw()
/external/skia/tools/debugger/
DDrawCommand.h606 sk_sp<SkVertices> fVertices;
/external/skia/src/gpu/graphite/dawn/
DDawnCommandBuffer.cpp364 bdb->fVertices, bdb->fInstances, bdb->fIndices, bdb->fIndirect); in addDrawPass()

12