Home
last modified time | relevance | path

Searched refs:SkVertices (Results 1 – 25 of 168) sorted by relevance

1234567

/external/skqp/tests/
DVerticesTest.cpp14 static bool equal(const SkVertices* v0, const SkVertices* v1) { in equal()
59 const uint32_t texFlags[] = { 0, SkVertices::kHasTexCoords_BuilderFlag }; in DEF_TEST()
60 const uint32_t colFlags[] = { 0, SkVertices::kHasColors_BuilderFlag }; in DEF_TEST()
65 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, vCount, iCount, flags); in DEF_TEST()
81 sk_sp<SkVertices> v0 = builder.detach(); in DEF_TEST()
83 sk_sp<SkVertices> v1 = SkVertices::Decode(data->data(), data->size()); in DEF_TEST()
94 SkVertices::Builder builder(SkVertices::kTriangleFan_VertexMode, UINT16_MAX + 1, 0, in DEF_TEST()
95 SkVertices::kHasColors_BuilderFlag); in DEF_TEST()
100 SkVertices::Builder builder(SkVertices::kTriangleFan_VertexMode, UINT16_MAX + 2, 0, in DEF_TEST()
101 SkVertices::kHasColors_BuilderFlag); in DEF_TEST()
[all …]
/external/skia/tests/
DVerticesTest.cpp14 static bool equal(const SkVertices* v0, const SkVertices* v1) { in equal()
59 const uint32_t texFlags[] = { 0, SkVertices::kHasTexCoords_BuilderFlag }; in DEF_TEST()
60 const uint32_t colFlags[] = { 0, SkVertices::kHasColors_BuilderFlag }; in DEF_TEST()
65 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, vCount, iCount, flags); in DEF_TEST()
81 sk_sp<SkVertices> v0 = builder.detach(); in DEF_TEST()
83 sk_sp<SkVertices> v1 = SkVertices::Decode(data->data(), data->size()); in DEF_TEST()
94 SkVertices::Builder builder(SkVertices::kTriangleFan_VertexMode, UINT16_MAX + 1, 0, in DEF_TEST()
95 SkVertices::kHasColors_BuilderFlag); in DEF_TEST()
100 SkVertices::Builder builder(SkVertices::kTriangleFan_VertexMode, UINT16_MAX + 2, 0, in DEF_TEST()
101 SkVertices::kHasColors_BuilderFlag); in DEF_TEST()
[all …]
/external/skia/src/core/
DSkVertices.cpp29 struct SkVertices::Sizes {
30 Sizes(SkVertices::VertexMode mode, int vertexCount, int indexCount, bool hasTexs, in Sizes()
63 fTotal = safe.add(sizeof(SkVertices), in Sizes()
72 fArrays = fTotal - sizeof(SkVertices); // just the sum of the arrays in Sizes()
94 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder()
96 bool hasTexs = SkToBool(builderFlags & SkVertices::kHasTexCoords_BuilderFlag); in Builder()
97 bool hasColors = SkToBool(builderFlags & SkVertices::kHasColors_BuilderFlag); in Builder()
98 bool hasBones = SkToBool(builderFlags & SkVertices::kHasBones_BuilderFlag); in Builder()
99 bool isVolatile = !SkToBool(builderFlags & SkVertices::kIsNonVolatile_BuilderFlag); in Builder()
101 SkVertices::Sizes(mode, vertexCount, indexCount, hasTexs, hasColors, hasBones)); in Builder()
[all …]
DSkVertState.cpp95 VertState::Proc VertState::chooseProc(SkVertices::VertexMode mode) { in chooseProc()
97 case SkVertices::kTriangles_VertexMode: in chooseProc()
99 case SkVertices::kTriangleStrip_VertexMode: in chooseProc()
101 case SkVertices::kTriangleFan_VertexMode: in chooseProc()
DSkDraw.h65 void drawVertices(SkVertices::VertexMode mode, int vertexCount,
67 const SkColor colors[], const SkVertices::BoneIndices boneIndices[],
68 const SkVertices::BoneWeights boneWeights[], SkBlendMode bmode,
70 const SkPaint& paint, const SkVertices::Bone bones[], int boneCount) const;
/external/skqp/src/core/
DSkVertices.cpp29 struct SkVertices::Sizes {
30 Sizes(SkVertices::VertexMode mode, int vertexCount, int indexCount, bool hasTexs, in Sizes()
63 fTotal = safe.add(sizeof(SkVertices), in Sizes()
72 fArrays = fTotal - sizeof(SkVertices); // just the sum of the arrays in Sizes()
94 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder()
96 bool hasTexs = SkToBool(builderFlags & SkVertices::kHasTexCoords_BuilderFlag); in Builder()
97 bool hasColors = SkToBool(builderFlags & SkVertices::kHasColors_BuilderFlag); in Builder()
98 bool hasBones = SkToBool(builderFlags & SkVertices::kHasBones_BuilderFlag); in Builder()
99 bool isVolatile = !SkToBool(builderFlags & SkVertices::kIsNonVolatile_BuilderFlag); in Builder()
101 SkVertices::Sizes(mode, vertexCount, indexCount, hasTexs, hasColors, hasBones)); in Builder()
[all …]
DSkVertState.cpp95 VertState::Proc VertState::chooseProc(SkVertices::VertexMode mode) { in chooseProc()
97 case SkVertices::kTriangles_VertexMode: in chooseProc()
99 case SkVertices::kTriangleStrip_VertexMode: in chooseProc()
101 case SkVertices::kTriangleFan_VertexMode: in chooseProc()
DSkDraw.h65 void drawVertices(SkVertices::VertexMode mode, int vertexCount,
67 const SkColor colors[], const SkVertices::BoneIndices boneIndices[],
68 const SkVertices::BoneWeights boneWeights[], SkBlendMode bmode,
70 const SkPaint& paint, const SkVertices::Bone bones[], int boneCount) const;
/external/skqp/gm/
Dskinning.cpp22 static const SkVertices::Bone kBones[] = {
45 static const SkVertices::BoneIndices kBoneIndices[] = {
51 static const SkVertices::BoneWeights kBoneWeights[] = {
65 static void swap(const SkVertices::Bone** x, const SkVertices::Bone** y) { in swap()
66 const SkVertices::Bone* temp = *x; in swap()
102 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in onOnceBeforeDraw()
120 const SkVertices::Bone* bones[kBoneCount]; in onDraw()
133 const SkVertices::Bone** bones, in drawPermutations()
140 SkVertices::Bone copiedBones[kBoneCount]; in drawPermutations()
151 sk_sp<SkVertices> vertices = fVertices->applyBones(copiedBones, in drawPermutations()
[all …]
Dvertices.cpp171 auto v = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in onDraw()
198 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, 3 * kNumTris, in draw_batching()
199 SkVertices::kHasColors_BuilderFlag | in draw_batching()
200 SkVertices::kHasTexCoords_BuilderFlag); in draw_batching()
236 auto v = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, in draw_batching()
/external/skia/gm/
Dskinning.cpp22 static const SkVertices::Bone kBones[] = {
45 static const SkVertices::BoneIndices kBoneIndices[] = {
51 static const SkVertices::BoneWeights kBoneWeights[] = {
65 static void swap(const SkVertices::Bone** x, const SkVertices::Bone** y) { in swap()
66 const SkVertices::Bone* temp = *x; in swap()
102 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in onOnceBeforeDraw()
120 const SkVertices::Bone* bones[kBoneCount]; in onDraw()
133 const SkVertices::Bone** bones, in drawPermutations()
140 SkVertices::Bone copiedBones[kBoneCount]; in drawPermutations()
151 sk_sp<SkVertices> vertices = fVertices->applyBones(copiedBones, in drawPermutations()
[all …]
Dvertices.cpp171 auto v = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in onDraw()
198 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, 3 * kNumTris, in draw_batching()
199 SkVertices::kHasColors_BuilderFlag | in draw_batching()
200 SkVertices::kHasTexCoords_BuilderFlag); in draw_batching()
236 auto v = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, in draw_batching()
/external/skia/include/core/
DSkVertices.h20 class SK_API SkVertices : public SkNVRefCnt<SkVertices> {
112 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
122 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
141 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
160 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
194 sk_sp<SkVertices> detach();
202 sk_sp<SkVertices> fVertices;
207 friend class SkVertices; variable
232 sk_sp<SkVertices> applyBones(const Bone bones[], int boneCount) const;
241 static sk_sp<SkVertices> Decode(const void* buffer, size_t length);
[all …]
/external/skqp/include/core/
DSkVertices.h20 class SK_API SkVertices : public SkNVRefCnt<SkVertices> {
112 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
122 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
141 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
160 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount,
194 sk_sp<SkVertices> detach();
202 sk_sp<SkVertices> fVertices;
207 friend class SkVertices; variable
232 sk_sp<SkVertices> applyBones(const Bone bones[], int boneCount) const;
241 static sk_sp<SkVertices> Decode(const void* buffer, size_t length);
[all …]
/external/skqp/src/gpu/ops/
DGrDrawVerticesOp.h22 class SkVertices; variable
40 sk_sp<SkVertices>,
41 const SkVertices::Bone bones[],
48 GrDrawVerticesOp(const Helper::MakeArgs&, const SkPMColor4f&, sk_sp<SkVertices>,
49 const SkVertices::Bone bones[], int boneCount, GrPrimitiveType, GrAAType,
107 sk_sp<SkVertices> fVertices;
156 std::vector<SkVertices::Bone> fBones; // Bone transformation matrices.
DGrDrawVerticesOp.cpp17 sk_sp<SkVertices> vertices, in Make()
18 const SkVertices::Bone bones[], in Make()
33 sk_sp<SkVertices> vertices, const SkVertices::Bone bones[], in GrDrawVerticesOp()
101 const SkVertices::Bone& matrix = bones[i]; in GrDrawVerticesOp()
381 const SkVertices::BoneIndices* boneIndices = mesh.fVertices->boneIndices(); in fillBuffers()
382 const SkVertices::BoneWeights* boneWeights = mesh.fVertices->boneWeights(); in fillBuffers()
445 const SkVertices::BoneIndices& indices = boneIndices[j]; in fillBuffers()
446 const SkVertices::BoneWeights& weights = boneWeights[j]; in fillBuffers()
644 static constexpr SkVertices::VertexMode kIgnoredMode = SkVertices::kTriangles_VertexMode; in GR_DRAW_OP_TEST_DEFINE()
645 sk_sp<SkVertices> vertices = SkVertices::MakeCopy(kIgnoredMode, vertexCount, positions.begin(), in GR_DRAW_OP_TEST_DEFINE()
/external/skia/experimental/nima/
DNimaActor.h119 std::vector<SkVertices::BoneIndices> fBoneIdx;
120 std::vector<SkVertices::BoneWeights> fBoneWgt;
123 std::vector<SkVertices::Bone> fBones;
124 sk_sp<SkVertices> fVertices;
130 void drawVerticesObject(SkVertices* vertices, SkCanvas* canvas, bool useBones) const;
/external/skqp/experimental/nima/
DNimaActor.h119 std::vector<SkVertices::BoneIndices> fBoneIdx;
120 std::vector<SkVertices::BoneWeights> fBoneWgt;
123 std::vector<SkVertices::Bone> fBones;
124 sk_sp<SkVertices> fVertices;
130 void drawVerticesObject(SkVertices* vertices, SkCanvas* canvas, bool useBones) const;
/external/skia/src/utils/
DSkShadowUtils.cpp96 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices()
154 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices()
187 sk_sp<SkVertices> find(const AmbientVerticesFactory& ambient, const SkMatrix& matrix, in find()
192 sk_sp<SkVertices> add(const SkPath& devPath, const AmbientVerticesFactory& ambient, in add()
197 sk_sp<SkVertices> find(const SpotVerticesFactory& spot, const SkMatrix& matrix, in find()
202 sk_sp<SkVertices> add(const SkPath& devPath, const SpotVerticesFactory& spot, in add()
213 sk_sp<SkVertices> find(const FACTORY& factory, const SkMatrix& matrix, in find()
234 sk_sp<SkVertices> add(const SkPath& path, const FACTORY& factory, const SkMatrix& matrix, in add()
236 sk_sp<SkVertices> vertices = factory.makeVertices(path, matrix, translate); in add()
257 sk_sp<SkVertices> fVertices;
[all …]
DSkShadowTessellator.h18 class SkVertices; variable
29 sk_sp<SkVertices> MakeAmbient(const SkPath& path, const SkMatrix& ctm,
37 sk_sp<SkVertices> MakeSpot(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane,
/external/skqp/src/utils/
DSkShadowUtils.cpp95 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices()
153 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices()
186 sk_sp<SkVertices> find(const AmbientVerticesFactory& ambient, const SkMatrix& matrix, in find()
191 sk_sp<SkVertices> add(const SkPath& devPath, const AmbientVerticesFactory& ambient, in add()
196 sk_sp<SkVertices> find(const SpotVerticesFactory& spot, const SkMatrix& matrix, in find()
201 sk_sp<SkVertices> add(const SkPath& devPath, const SpotVerticesFactory& spot, in add()
212 sk_sp<SkVertices> find(const FACTORY& factory, const SkMatrix& matrix, in find()
233 sk_sp<SkVertices> add(const SkPath& path, const FACTORY& factory, const SkMatrix& matrix, in add()
235 sk_sp<SkVertices> vertices = factory.makeVertices(path, matrix, translate); in add()
256 sk_sp<SkVertices> fVertices;
[all …]
DSkShadowTessellator.h18 class SkVertices; variable
29 sk_sp<SkVertices> MakeAmbient(const SkPath& path, const SkMatrix& ctm,
37 sk_sp<SkVertices> MakeSpot(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane,
/external/skqp/experimental/canvaskit/
Dcanvaskit_bindings.cpp66 using BoneIndices = SkVertices::BoneIndices;
67 using BoneWeights = SkVertices::BoneWeights;
68 using Bone = SkVertices::Bone;
481 void raw_destructor<SkVertices>(SkVertices *ptr) { in raw_destructor()
641 function("_MakeSkVertices", optional_override([](SkVertices::VertexMode mode, int vertexCount, in EMSCRIPTEN_BINDINGS()
645 … int indexCount, uintptr_t /* uint16_t * */ iPtr)->sk_sp<SkVertices> { in EMSCRIPTEN_BINDINGS()
654 return SkVertices::MakeCopy(mode, vertexCount, positions, texs, colors, in EMSCRIPTEN_BINDINGS()
702 ….function("drawVertices", select_overload<void (const sk_sp<SkVertices>&, SkBlendMode, const SkPai… in EMSCRIPTEN_BINDINGS()
907 class_<SkVertices>("SkVertices") in EMSCRIPTEN_BINDINGS()
908 .smart_ptr<sk_sp<SkVertices>>("sk_sp<SkVertices>") in EMSCRIPTEN_BINDINGS()
[all …]
/external/skqp/src/gpu/
DSkGr.h140 static inline GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
142 case SkVertices::kTriangles_VertexMode: in SkVertexModeToGrPrimitiveType()
144 case SkVertices::kTriangleStrip_VertexMode: in SkVertexModeToGrPrimitiveType()
146 case SkVertices::kTriangleFan_VertexMode: in SkVertexModeToGrPrimitiveType()
/external/skia/src/gpu/
DSkGr.h142 static inline GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
144 case SkVertices::kTriangles_VertexMode: in SkVertexModeToGrPrimitiveType()
146 case SkVertices::kTriangleStrip_VertexMode: in SkVertexModeToGrPrimitiveType()
148 case SkVertices::kTriangleFan_VertexMode: in SkVertexModeToGrPrimitiveType()

1234567