/external/skqp/tests/ |
D | VerticesTest.cpp | 14 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/ |
D | VerticesTest.cpp | 14 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/ |
D | SkVertices.cpp | 29 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 …]
|
D | SkVertState.cpp | 95 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()
|
D | SkDraw.h | 65 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/ |
D | SkVertices.cpp | 29 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 …]
|
D | SkVertState.cpp | 95 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()
|
D | SkDraw.h | 65 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/ |
D | skinning.cpp | 22 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 …]
|
D | vertices.cpp | 171 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/ |
D | skinning.cpp | 22 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 …]
|
D | vertices.cpp | 171 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/ |
D | SkVertices.h | 20 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/ |
D | SkVertices.h | 20 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/ |
D | GrDrawVerticesOp.h | 22 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.
|
D | GrDrawVerticesOp.cpp | 17 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/ |
D | NimaActor.h | 119 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/ |
D | NimaActor.h | 119 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/ |
D | SkShadowUtils.cpp | 96 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 …]
|
D | SkShadowTessellator.h | 18 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/ |
D | SkShadowUtils.cpp | 95 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 …]
|
D | SkShadowTessellator.h | 18 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/ |
D | canvaskit_bindings.cpp | 66 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/ |
D | SkGr.h | 140 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/ |
D | SkGr.h | 142 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()
|