/third_party/skia/src/core/ |
D | SkVertices.cpp | 121 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 …]
|
D | SkVerticesPriv.h | 23 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 …]
|
D | SkPictureData.cpp | 42 , 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()
|
D | SkPictureData.h | 131 return read_index_base_1_or_null(reader, fVertices); in getVertices() 153 SkTArray<sk_sp<const SkVertices>> fVertices; variable
|
/third_party/flutter/skia/src/core/ |
D | SkVertices.cpp | 120 fVertices.reset(new (storage) SkVertices); in init() 125 fVertices->fPositions = (SkPoint*)ptr; ptr += sizes.fVSize; in init() 126 fVertices->fTexs = sizes.fTSize ? (SkPoint*)ptr : nullptr; ptr += sizes.fTSize; in init() 127 fVertices->fColors = sizes.fCSize ? (SkColor*)ptr : nullptr; ptr += sizes.fCSize; in init() 128 fVertices->fBoneIndices = sizes.fBISize ? (BoneIndices*) ptr : nullptr; ptr += sizes.fBISize; in init() 129 fVertices->fBoneWeights = sizes.fBWSize ? (BoneWeights*) ptr : nullptr; ptr += sizes.fBWSize; in init() 130 fVertices->fIndices = sizes.fISize ? (uint16_t*)ptr : nullptr; in init() 131 fVertices->fVertexCnt = vertexCount; in init() 132 fVertices->fIndexCnt = indexCount; in init() 133 fVertices->fIsVolatile = isVolatile; in init() [all …]
|
D | SkPictureData.cpp | 46 , fVertices(record.getVertices()) in SkPictureData() 175 if (!fVertices.empty()) { in flattenToBuffer() 176 write_tag_size(buffer, SK_PICT_VERTICES_BUFFER_TAG, fVertices.count()); in flattenToBuffer() 177 for (const auto& vert : fVertices) { in flattenToBuffer() 444 new_array_from_buffer(buffer, size, fVertices, create_vertices_from_buffer); in parseBufferTag()
|
/third_party/flutter/skia/modules/skottie/src/ |
D | SkottieValue.cpp | 122 SkASSERT(v->fVertices.empty()); in FromJSON() 157 v->fVertices.reserve(inPts.size()); in FromJSON() 159 v->fVertices.push_back(BezierVertex({inPts[i], outPts[i], verts[i]})); in FromJSON() 168 return v1.fVertices.size() == v2.fVertices.size() in CanLerp() 185 SkASSERT(v0.fVertices.size() == v1.fVertices.size()); in Lerp() 192 result->fVertices.resize(v0.fVertices.size()); in Lerp() 194 for (size_t i = 0; i < v0.fVertices.size(); ++i) { in Lerp() 195 result->fVertices[i] = BezierVertex({ in Lerp() 196 lerp_point(v0.fVertices[i].fInPoint , v1.fVertices[i].fInPoint , t2f), in Lerp() 197 lerp_point(v0.fVertices[i].fOutPoint, v1.fVertices[i].fOutPoint, t2f), in Lerp() [all …]
|
D | SkottieValue.h | 55 std::vector<BezierVertex> fVertices; member 65 return fVertices == other.fVertices && fClosed == other.fClosed;
|
/third_party/skia/src/gpu/ |
D | GrEagerVertexAllocator.cpp | 39 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()
|
D | GrThreadSafeCache.h | 107 const void* vertices() const { return fVertices; } in vertices() 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; variable
|
D | GrEagerVertexAllocator.h | 78 SkASSERT(!fLockStride && !fVertices && !fVertexData); in ~GrCpuVertexAllocator() 90 void* fVertices = nullptr; variable
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrDrawVerticesOp.cpp | 84 sk_sp<SkVertices> fVertices; member 90 return fVertices->hasTexCoords() && !fIgnoreTexCoords; in hasExplicitLocalCoords() 94 return fVertices->hasColors() && !fIgnoreColors; in hasPerVertexColors() 100 return fMeshes[0].fVertices->hasIndices(); in isIndexed() 154 mesh.fVertices = std::move(vertices); in DrawVerticesOp() 158 if (mesh.fVertices->hasBones() && bones) { in DrawVerticesOp() 160 mesh.fVertices = mesh.fVertices->applyBones(bones, boneCount); in DrawVerticesOp() 175 if (!mesh.fVertices->hasBones() && boneCount == 1) { in DrawVerticesOp() 188 this->setTransformedBounds(mesh.fVertices->bounds(), in DrawVerticesOp() 276 if (fMeshes[0].fVertices->isVolatile() || !hasMapBufferSupport) { in onPrepareDraws() [all …]
|
D | GrTessellatingPathRenderer.cpp | 77 , fVertices(nullptr) { in StaticVertexAllocator() 87 fVertices = fVertexBuffer->map(); in lock() 89 fVertices = sk_malloc_throw(vertexCount * stride()); in lock() 91 return fVertices; in lock() 97 fVertexBuffer->updateData(fVertices, actualCount * stride()); in unlock() 98 sk_free(fVertices); in unlock() 100 fVertices = nullptr; in unlock() 108 void* fVertices; member in __anon6ce33dc00111::StaticVertexAllocator 117 , fVertices(nullptr) {} in DynamicVertexAllocator() 120 fVertices = fTarget->makeVertexSpace(stride(), vertexCount, &fVertexBuffer, &fFirstVertex); in lock() [all …]
|
D | GrDefaultPathRenderer.cpp | 219 uint16_t currentIndex() const { return fCurVert - fVertices; } in currentIndex() 230 fVertices = static_cast<SkPoint*>(fTarget->makeVertexSpaceAtLeast(fVertexStride, in allocNewBuffers() 249 fCurVert = fVertices; in allocNewBuffers() 266 int vertexCount = fCurVert - fVertices; in emitMeshAndPutBackReserve() 288 if (fCurVert + vertsNeeded > fVertices + fVerticesInChunk || in needSpace() 297 SkPoint subpathStartPt = fVertices[fSubpathIndexStart]; in needSpace() 321 SkPoint* fVertices; member in __anon7631e7560111::PathGeoBuilder
|
D | GrMeshDrawOp.cpp | 38 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 39 if (!fVertices) { in init()
|
D | GrMeshDrawOp.h | 46 void* vertices() const { return fVertices; } in vertices() 54 void* fVertices = nullptr;
|
/third_party/flutter/skia/gm/ |
D | skinning.cpp | 81 , fVertices(nullptr) in SkinningGM() 107 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in onOnceBeforeDraw() 156 sk_sp<SkVertices> vertices = fVertices->applyBones(copiedBones, in drawPermutations() 165 canvas->drawVertices(fVertices.get(), in drawPermutations() 199 sk_sp<SkVertices> fVertices; member in SkinningGM
|
/third_party/skia/src/gpu/ops/ |
D | TriangulatingPathRenderer.cpp | 104 SkASSERT(!fLockStride && !fVertices && !fVertexBuffer && !fVertexData); in ~StaticVertexAllocator() 109 SkASSERT(!fLockStride && !fVertices && !fVertexBuffer && !fVertexData); in lock() 119 fVertices = fVertexBuffer->map(); in lock() 121 if (!fVertices) { in lock() 122 fVertices = sk_malloc_throw(eagerCount * stride); in lock() 126 return fVertices; in lock() 130 SkASSERT(fLockStride && fVertices && fVertexBuffer && !fVertexData); in unlock() 135 fVertexBuffer->updateData(fVertices, actualCount * fLockStride); in unlock() 136 sk_free(fVertices); in unlock() 142 fVertices = nullptr; in unlock() [all …]
|
D | DefaultPathRenderer.cpp | 225 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 __anon416918880111::PathGeoBuilder
|
D | GrMeshDrawOp.h | 64 void* vertices() const { return fVertices; } in vertices() 74 void* fVertices = nullptr;
|
D | GrMeshDrawOp.cpp | 87 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init() 88 if (!fVertices) { in init()
|
/third_party/skia/bench/ |
D | GlyphQuadFillBench.cpp | 60 fVertices.reset(new char[subRun->vertexStride(drawMatrix) * subRun->glyphCount() * 4]); in onPerCanvasPreDraw() 73 subRun->fillVertexData(fVertices.get(), 0, subRun->glyphCount(), in onDraw() 81 std::unique_ptr<char[]> fVertices; member in DirectMaskGlyphVertexFillBenchmark
|
/third_party/flutter/skia/src/utils/ |
D | SkShadowUtils.cpp | 228 return fEntries[i].fVertices; in find() 245 fSize -= fEntries[i].fVertices->approximateSize(); in add() 248 fEntries[i].fVertices = vertices; in add() 257 sk_sp<SkVertices> fVertices; member 317 sk_sp<SkVertices> fVertices; member 336 findContext->fVertices = in FindVisitor() 338 if (findContext->fVertices) { in FindVisitor() 430 bool foundInCache = SkToBool(context.fVertices); in draw_shadow() 432 vertices = std::move(context.fVertices); in draw_shadow()
|
/third_party/skia/include/core/ |
D | SkVertices.h | 66 bool isValid() const { return fVertices != nullptr; } in isValid() 84 sk_sp<SkVertices> fVertices; variable
|
/third_party/skia/src/utils/ |
D | SkShadowUtils.cpp | 271 return fEntries[i].fVertices; in find() 288 fSize -= fEntries[i].fVertices->approximateSize(); in add() 291 fEntries[i].fVertices = vertices; in add() 300 sk_sp<SkVertices> fVertices; member 360 sk_sp<SkVertices> fVertices; member 379 findContext->fVertices = in FindVisitor() 381 if (findContext->fVertices) { in FindVisitor() 473 bool foundInCache = SkToBool(context.fVertices); in draw_shadow() 475 vertices = std::move(context.fVertices); in draw_shadow()
|