Home
last modified time | relevance | path

Searched refs:fVertices (Results 1 - 20 of 20) sorted by relevance

/third_party/skia/src/core/
H A 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 in detach()
[all...]
H A 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 in colors()
51 SkVertices* fVertices; global() member in SkVerticesPriv
[all...]
H A DSkPictureData.cpp42 , fVertices(record.getVertices()) in SkPictureData()
171 if (!fVertices.empty()) { in flattenToBuffer()
172 write_tag_size(buffer, SK_PICT_VERTICES_BUFFER_TAG, fVertices.count()); in flattenToBuffer()
173 for (const auto& vert : fVertices) { in flattenToBuffer()
441 new_array_from_buffer(buffer, size, fVertices, SkVerticesPriv::Decode); in parseBufferTag()
H A DSkPictureData.h131 return read_index_base_1_or_null(reader, fVertices); in getVertices()
153 SkTArray<sk_sp<const SkVertices>> fVertices; member in SkPictureData
H A DSkPictureRecord.h51 return fVertices; in getVertices()
249 SkTArray<sk_sp<const SkVertices>> fVertices; member in SkPictureRecord
H A DSkPictureRecord.cpp941 this->addInt(find_or_append(fVertices, vertices) + 1); in addVertices()
/third_party/skia/src/gpu/
H A 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()
H A DGrThreadSafeCache.h107 const void* vertices() const { return fVertices; } in vertices()
118 // TODO: once we add the gpuBuffer we could free 'fVertices'. Deinstantiable in setGpuBuffer()
125 sk_free(const_cast<void*>(fVertices)); in reset()
126 fVertices = nullptr; in reset()
136 : fVertices(vertices) in VertexData()
142 : fVertices(nullptr) in VertexData()
148 const void* fVertices; member in GrThreadSafeCache::VertexData
H A DGrEagerVertexAllocator.h78 SkASSERT(!fLockStride && !fVertices && !fVertexData);
90 void* fVertices = nullptr; member in GrCpuVertexAllocator
/third_party/skia/src/gpu/ops/
H A DTriangulatingPathRenderer.cpp104 SkASSERT(!fLockStride && !fVertices && !fVertexBuffer && !fVertexData);
109 SkASSERT(!fLockStride && !fVertices && !fVertexBuffer && !fVertexData);
119 fVertices = fVertexBuffer->map();
121 if (!fVertices) {
122 fVertices = sk_malloc_throw(eagerCount * stride);
126 return fVertices;
130 SkASSERT(fLockStride && fVertices && fVertexBuffer && !fVertexData);
135 fVertexBuffer->updateData(fVertices, actualCount * fLockStride);
136 sk_free(fVertices); variable
142 fVertices
157 void* fVertices = nullptr; global() member in __anon18863::StaticVertexAllocator
[all...]
H A 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()
332 // This assert is reading from the gpu buffer fVertices and will be slow, but for debug in ensureSpace()
335 SkASSERT(fSubpathStartPoint == fVertices[fSubpathIndexStart]); in ensureSpace()
372 SkPoint* fVertices; member in __anon18835::PathGeoBuilder
[all...]
H A DGrMeshDrawOp.cpp87 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init()
88 if (!fVertices) { in init()
H A DGrMeshDrawOp.h64 void* vertices() const { return fVertices; } in vertices()
74 void* fVertices = nullptr; member in GrMeshDrawOp::PatternHelper
H A DDrawVerticesOp.cpp263 sk_sp<SkVertices> fVertices; member
268 return fVertices->priv().hasColors() && !fIgnoreColors; in hasPerVertexColors()
274 return fMeshes[0].fVertices->priv().hasIndices(); in isIndexed()
293 // GrPrimitiveType is more expressive than fVertices.mode() so it is used instead and we ignore
335 mesh.fVertices = std::move(vertices); in DrawVerticesOpImpl()
345 this->setTransformedBounds(mesh.fVertices->bounds(), in DrawVerticesOpImpl()
440 SkVerticesPriv info(mesh.fVertices->priv()); in onPrepareDraws()
/third_party/skia/bench/
H A DGlyphQuadFillBench.cpp60 fVertices.reset(new char[subRun->vertexStride(drawMatrix) * subRun->glyphCount() * 4]);
73 subRun->fillVertexData(fVertices.get(), 0, subRun->glyphCount(),
81 std::unique_ptr<char[]> fVertices; member in DirectMaskGlyphVertexFillBenchmark
/third_party/skia/src/utils/
H A DSkShadowUtils.cpp273 return fEntries[i].fVertices; in find()
290 fSize -= fEntries[i].fVertices->approximateSize(); in add()
293 fEntries[i].fVertices = vertices; in add()
302 sk_sp<SkVertices> fVertices; member
362 sk_sp<SkVertices> fVertices; member
381 findContext->fVertices = in FindVisitor()
383 if (findContext->fVertices) { in FindVisitor()
476 bool foundInCache = SkToBool(context.fVertices); in draw_shadow()
478 vertices = std::move(context.fVertices); in draw_shadow()
/third_party/skia/include/core/
H A DSkVertices.h66 bool isValid() const { return fVertices != nullptr; } in isValid()
84 sk_sp<SkVertices> fVertices; member in SkVertices::Builder
/third_party/skia/samplecode/
H A DSamplePatch.cpp363 sk_sp<SkVertices> fVertices[N]; member in __anon18638::PseudoInkView
385 fVertices[i] = make_verts(fPath, 30);
390 canvas->drawVertices(fVertices[i], SkBlendMode::kSrc, fVertsP);
/third_party/skia/tools/debugger/
H A DDrawCommand.h580 sk_sp<SkVertices> fVertices; member in DrawVerticesCommand
H A DDrawCommand.cpp1942 , fVertices(std::move(vertices)) in DrawVerticesCommand()
1947 canvas->drawVertices(fVertices, fBlendMode, fPaint); in execute()

Completed in 17 milliseconds