Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkVertices.cpp120 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 …]
DSkPictureData.cpp46 , fVertices(record.getVertices()) in SkPictureData()
172 if (!fVertices.empty()) { in flattenToBuffer()
173 write_tag_size(buffer, SK_PICT_VERTICES_BUFFER_TAG, fVertices.count()); in flattenToBuffer()
174 for (const auto& vert : fVertices) { in flattenToBuffer()
436 new_array_from_buffer(buffer, size, fVertices, create_vertices_from_buffer); in parseBufferTag()
/external/skqp/src/core/
DSkVertices.cpp120 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 …]
DSkPictureData.cpp46 , fVertices(record.getVertices()) in SkPictureData()
172 if (!fVertices.empty()) { in flattenToBuffer()
173 write_tag_size(buffer, SK_PICT_VERTICES_BUFFER_TAG, fVertices.count()); in flattenToBuffer()
174 for (const auto& vert : fVertices) { in flattenToBuffer()
436 new_array_from_buffer(buffer, size, fVertices, create_vertices_from_buffer); in parseBufferTag()
DSkPictureData.h134 return read_index_base_1_or_null(reader, fVertices); in getVertices()
156 SkTArray<sk_sp<const SkVertices>> fVertices; variable
/external/skia/modules/skottie/src/
DSkottieValue.cpp123 SkASSERT(v->fVertices.empty()); in FromJSON()
158 v->fVertices.reserve(inPts.size()); in FromJSON()
160 v->fVertices.push_back(BezierVertex({inPts[i], outPts[i], verts[i]})); in FromJSON()
169 return v1.fVertices.size() == v2.fVertices.size() in CanLerp()
187 SkASSERT(v0.fVertices.size() == v1.fVertices.size()); in Lerp()
194 result->fVertices.resize(v0.fVertices.size()); in Lerp()
196 for (size_t i = 0; i < v0.fVertices.size(); ++i) { in Lerp()
197 result->fVertices[i] = BezierVertex({ in Lerp()
198 lerp_point(v0.fVertices[i].fInPoint , v1.fVertices[i].fInPoint , t2f), in Lerp()
199 lerp_point(v0.fVertices[i].fOutPoint, v1.fVertices[i].fOutPoint, t2f), in Lerp()
[all …]
DSkottieValue.h57 std::vector<BezierVertex> fVertices; member
67 return fVertices == other.fVertices && fClosed == other.fClosed;
/external/skqp/modules/skottie/src/
DSkottieValue.cpp123 SkASSERT(v->fVertices.empty()); in FromJSON()
158 v->fVertices.reserve(inPts.size()); in FromJSON()
160 v->fVertices.push_back(BezierVertex({inPts[i], outPts[i], verts[i]})); in FromJSON()
169 return v1.fVertices.size() == v2.fVertices.size() in CanLerp()
187 SkASSERT(v0.fVertices.size() == v1.fVertices.size()); in Lerp()
194 result->fVertices.resize(v0.fVertices.size()); in Lerp()
196 for (size_t i = 0; i < v0.fVertices.size(); ++i) { in Lerp()
197 result->fVertices[i] = BezierVertex({ in Lerp()
198 lerp_point(v0.fVertices[i].fInPoint , v1.fVertices[i].fInPoint , t2f), in Lerp()
199 lerp_point(v0.fVertices[i].fOutPoint, v1.fVertices[i].fOutPoint, t2f), in Lerp()
[all …]
DSkottieValue.h57 std::vector<BezierVertex> fVertices; member
67 return fVertices == other.fVertices && fClosed == other.fClosed;
/external/skqp/src/gpu/ops/
DGrDrawVerticesOp.cpp51 mesh.fVertices = std::move(vertices); in GrDrawVerticesOp()
56 if (mesh.fVertices->hasBones() && bones) { in GrDrawVerticesOp()
58 mesh.fVertices = mesh.fVertices->applyBones(bones, boneCount); in GrDrawVerticesOp()
82 if (!mesh.fVertices->hasBones() && boneCount == 1) { in GrDrawVerticesOp()
99 const SkRect originalBounds = bones[0].mapRect(mesh.fVertices->bounds()); in GrDrawVerticesOp()
110 this->setTransformedBounds(mesh.fVertices->bounds(), in GrDrawVerticesOp()
212 if (fMeshes[0].fVertices->isVolatile() || !hasMapBufferSupport) { in onPrepareDraws()
282 vertexKeyBuilder[0] = indexKeyBuilder[0] = fMeshes[0].fVertices->uniqueID(); in drawNonVolatile()
370 int indexCount = mesh.fVertices->indexCount(); in fillBuffers()
372 *indices++ = mesh.fVertices->indices()[j] + vertexOffset; in fillBuffers()
[all …]
DGrTessellatingPathRenderer.cpp76 , 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 __anon1ff23baf0111::StaticVertexAllocator
117 , fVertices(nullptr) {} in DynamicVertexAllocator()
120 fVertices = fTarget->makeVertexSpace(stride(), vertexCount, &fVertexBuffer, &fFirstVertex); in lock()
[all …]
DGrDrawVerticesOp.h107 sk_sp<SkVertices> fVertices; member
114 return fVertices->hasTexCoords() && !fIgnoreTexCoords; in hasExplicitLocalCoords()
118 return fVertices->hasColors() && !fIgnoreColors; in hasPerVertexColors()
122 return fVertices->hasBones() && !fIgnoreBones; in hasBones()
128 return fMeshes[0].fVertices->hasIndices(); in isIndexed()
DGrDefaultPathRenderer.cpp220 uint16_t currentIndex() const { return fCurVert - fVertices; } in currentIndex()
231 fVertices = static_cast<SkPoint*>(fTarget->makeVertexSpaceAtLeast(fVertexStride, in allocNewBuffers()
250 fCurVert = fVertices; in allocNewBuffers()
267 int vertexCount = fCurVert - fVertices; in emitMeshAndPutBackReserve()
289 if (fCurVert + vertsNeeded > fVertices + fVerticesInChunk || in needSpace()
298 SkPoint subpathStartPt = fVertices[fSubpathIndexStart]; in needSpace()
324 SkPoint* fVertices; member in __anon992fb3e50111::PathGeoBuilder
DGrMeshDrawOp.cpp42 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init()
43 if (!fVertices) { in init()
/external/skia/src/gpu/ops/
DGrDrawVerticesOp.cpp84 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()
275 if (fMeshes[0].fVertices->isVolatile() || !hasMapBufferSupport) { in onPrepareDraws()
[all …]
DGrTessellatingPathRenderer.cpp77 , 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 __anon5dca5af80111::StaticVertexAllocator
117 , fVertices(nullptr) {} in DynamicVertexAllocator()
120 fVertices = fTarget->makeVertexSpace(stride(), vertexCount, &fVertexBuffer, &fFirstVertex); in lock()
[all …]
DGrDefaultPathRenderer.cpp218 uint16_t currentIndex() const { return fCurVert - fVertices; } in currentIndex()
229 fVertices = static_cast<SkPoint*>(fTarget->makeVertexSpaceAtLeast(fVertexStride, in allocNewBuffers()
248 fCurVert = fVertices; in allocNewBuffers()
265 int vertexCount = fCurVert - fVertices; in emitMeshAndPutBackReserve()
287 if (fCurVert + vertsNeeded > fVertices + fVerticesInChunk || in needSpace()
296 SkPoint subpathStartPt = fVertices[fSubpathIndexStart]; in needSpace()
320 SkPoint* fVertices; member in __anon372be18e0111::PathGeoBuilder
DGrMeshDrawOp.cpp38 fVertices = target->makeVertexSpace(vertexStride, vertexCount, &vertexBuffer, &firstVertex); in init()
39 if (!fVertices) { in init()
DGrMeshDrawOp.h46 void* vertices() const { return fVertices; } in vertices()
54 void* fVertices = nullptr;
/external/skqp/gm/
Dskinning.cpp76 , fVertices(nullptr) in SkinningGM()
102 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in onOnceBeforeDraw()
151 sk_sp<SkVertices> vertices = fVertices->applyBones(copiedBones, in drawPermutations()
160 canvas->drawVertices(fVertices.get(), in drawPermutations()
194 sk_sp<SkVertices> fVertices; member in SkinningGM
/external/skia/gm/
Dskinning.cpp76 , fVertices(nullptr) in SkinningGM()
102 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in onOnceBeforeDraw()
151 sk_sp<SkVertices> vertices = fVertices->applyBones(copiedBones, in drawPermutations()
160 canvas->drawVertices(fVertices.get(), in drawPermutations()
194 sk_sp<SkVertices> fVertices; member in SkinningGM
/external/skia/src/utils/
DSkShadowUtils.cpp228 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()
/external/skqp/src/utils/
DSkShadowUtils.cpp227 return fEntries[i].fVertices; in find()
244 fSize -= fEntries[i].fVertices->approximateSize(); in add()
247 fEntries[i].fVertices = vertices; in add()
256 sk_sp<SkVertices> fVertices; member
316 sk_sp<SkVertices> fVertices; member
335 findContext->fVertices = in FindVisitor()
337 if (findContext->fVertices) { in FindVisitor()
404 bool foundInCache = SkToBool(context.fVertices); in draw_shadow()
406 vertices = std::move(context.fVertices); in draw_shadow()
/external/skqp/experimental/nima/
DNimaActor.cpp130 , fVertices(nullptr) in NimaActorImage()
159 sk_sp<SkVertices> vertices = fVertices; in render()
161 vertices = fVertices->applyBones(fBones.data(), fBones.size()); in render()
246 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in updateVertices()
/external/skia/experimental/nima/
DNimaActor.cpp130 , fVertices(nullptr) in NimaActorImage()
159 sk_sp<SkVertices> vertices = fVertices; in render()
161 vertices = fVertices->applyBones(fBones.data(), fBones.size()); in render()
246 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in updateVertices()

12