/third_party/flutter/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 …]
|
/third_party/skia/tests/ |
D | VerticesTest.cpp | 18 static bool equal(const SkVertices* vert0, const SkVertices* vert1) { in equal() 61 static void self_test(sk_sp<SkVertices> v0, skiatest::Reporter* reporter) { in self_test() 69 sk_sp<SkVertices> v1 = SkVerticesPriv::Decode(reader); in self_test() 83 const uint32_t texFlags[] = { 0, SkVertices::kHasTexCoords_BuilderFlag }; in DEF_TEST() 84 const uint32_t colFlags[] = { 0, SkVertices::kHasColors_BuilderFlag }; in DEF_TEST() 89 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, vCount, iCount, flags); in DEF_TEST() 111 SkVertices::Builder builder(SkVertices::kTriangleFan_VertexMode, UINT16_MAX + 1, 0, in DEF_TEST() 112 SkVertices::kHasColors_BuilderFlag); in DEF_TEST() 117 SkVertices::Builder builder(SkVertices::kTriangleFan_VertexMode, UINT16_MAX + 2, 0, in DEF_TEST() 118 SkVertices::kHasColors_BuilderFlag); in DEF_TEST() [all …]
|
/third_party/flutter/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;
|
/third_party/skia/src/core/ |
D | SkVertices.cpp | 32 struct SkVertices::Desc { 40 struct SkVertices::Sizes { 71 fTotal = safe.add(sizeof(SkVertices), in Sizes() 98 SkVertices::Builder::Builder(VertexMode mode, int vertexCount, int indexCount, in Builder() 100 bool hasTexs = SkToBool(builderFlags & SkVertices::kHasTexCoords_BuilderFlag); in Builder() 101 bool hasColors = SkToBool(builderFlags & SkVertices::kHasColors_BuilderFlag); in Builder() 105 SkVertices::Builder::Builder(const Desc& desc) { in Builder() 109 void SkVertices::Builder::init(const Desc& desc) { in init() 121 fVertices.reset(new (storage) SkVertices); in init() 124 char* ptr = (char*)storage + sizeof(SkVertices); in init() [all …]
|
D | SkVerticesPriv.h | 23 SkVertices::VertexMode mode() const { return fVertices->fMode; } in mode() 41 static sk_sp<SkVertices> Decode(SkReadBuffer&); 44 explicit SkVerticesPriv(SkVertices* vertices) : fVertices(vertices) {} in SkVerticesPriv() 51 SkVertices* fVertices; 53 friend class SkVertices; // to construct this type variable 56 inline SkVerticesPriv SkVertices::priv() { return SkVerticesPriv(this); } in priv() 58 inline const SkVerticesPriv SkVertices::priv() const { // NOLINT(readability-const-return-type) in priv() 59 return SkVerticesPriv(const_cast<SkVertices*>(this)); in priv()
|
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()
|
/third_party/flutter/skia/gm/ |
D | skinning.cpp | 27 static const SkVertices::Bone kBones[] = { 50 static const SkVertices::BoneIndices kBoneIndices[] = { 56 static const SkVertices::BoneWeights kBoneWeights[] = { 70 static void swap(const SkVertices::Bone** x, const SkVertices::Bone** y) { in swap() 71 const SkVertices::Bone* temp = *x; in swap() 107 fVertices = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, in onOnceBeforeDraw() 125 const SkVertices::Bone* bones[kBoneCount]; in onDraw() 138 const SkVertices::Bone** bones, in drawPermutations() 145 SkVertices::Bone copiedBones[kBoneCount]; in drawPermutations() 156 sk_sp<SkVertices> vertices = fVertices->applyBones(copiedBones, in drawPermutations() [all …]
|
D | vertices.cpp | 187 auto v = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in onDraw() 214 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, 3 * kNumTris, in draw_batching() 215 SkVertices::kHasColors_BuilderFlag | in draw_batching() 216 SkVertices::kHasTexCoords_BuilderFlag); in draw_batching() 252 auto v = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, in draw_batching()
|
/third_party/skia/include/core/ |
D | SkVertices.h | 22 class SK_API SkVertices : public SkNVRefCnt<SkVertices> { 38 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount, 45 static sk_sp<SkVertices> MakeCopy(VertexMode mode, int vertexCount, in MakeCopy() 76 sk_sp<SkVertices> detach(); 84 sk_sp<SkVertices> fVertices; 89 friend class SkVertices; variable 104 SkVertices() {} in SkVertices() function 109 friend class SkNVRefCnt<SkVertices>;
|
/third_party/flutter/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 …]
|
/third_party/skia/docs/examples/ |
D | draw_vertices.cpp | 13 SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, 3, pts, nullptr, colors), in draw() 21 SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, 3, pts, texs, nullptr), in draw()
|
/third_party/skia/gm/ |
D | vertices.cpp | 192 auto v = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in onDraw() 219 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, 3 * kNumTris, in draw_batching() 220 SkVertices::kHasColors_BuilderFlag | in draw_batching() 221 SkVertices::kHasTexCoords_BuilderFlag); in draw_batching() 257 auto v = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, kMeshVertexCnt, in draw_batching() 285 auto verts = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, 4, pos, pos, nullptr);
|
/third_party/flutter/skia/src/utils/ |
D | SkShadowUtils.cpp | 97 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,
|
/third_party/skia/src/utils/ |
D | SkShadowTessellator.h | 19 class SkVertices; variable 30 sk_sp<SkVertices> MakeAmbient(const SkPath& path, const SkMatrix& ctm, 38 sk_sp<SkVertices> MakeSpot(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane,
|
D | SkShadowUtils.cpp | 130 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices() 192 sk_sp<SkVertices> makeVertices(const SkPath& path, const SkMatrix& ctm, in makeVertices() 230 sk_sp<SkVertices> find(const AmbientVerticesFactory& ambient, const SkMatrix& matrix, in find() 235 sk_sp<SkVertices> add(const SkPath& devPath, const AmbientVerticesFactory& ambient, in add() 240 sk_sp<SkVertices> find(const SpotVerticesFactory& spot, const SkMatrix& matrix, in find() 245 sk_sp<SkVertices> add(const SkPath& devPath, const SpotVerticesFactory& spot, in add() 256 sk_sp<SkVertices> find(const FACTORY& factory, const SkMatrix& matrix, in find() 277 sk_sp<SkVertices> add(const SkPath& path, const FACTORY& factory, const SkMatrix& matrix, in add() 279 sk_sp<SkVertices> vertices = factory.makeVertices(path, matrix, translate); in add() 300 sk_sp<SkVertices> fVertices; [all …]
|
/third_party/flutter/engine/flutter/lib/ui/painting/ |
D | vertices.h | 28 bool init(SkVertices::VertexMode vertex_mode, 34 const sk_sp<SkVertices>& vertices() const { return vertices_; } in vertices() 39 sk_sp<SkVertices> vertices_;
|
D | vertices.cc | 43 bool Vertices::init(SkVertices::VertexMode vertex_mode, in init() 50 builderFlags |= SkVertices::kHasTexCoords_BuilderFlag; in init() 52 builderFlags |= SkVertices::kHasColors_BuilderFlag; in init() 54 SkVertices::Builder builder(vertex_mode, positions.size() / 2, in init()
|
/third_party/flutter/skia/modules/canvaskit/ |
D | canvaskit_bindings.cpp | 67 using BoneIndices = SkVertices::BoneIndices; 68 using BoneWeights = SkVertices::BoneWeights; 69 using Bone = SkVertices::Bone; 561 void raw_destructor<SkVertices>(SkVertices *ptr) { in raw_destructor() 792 ….function("drawVertices", select_overload<void (const sk_sp<SkVertices>&, SkBlendMode, const SkPai… in EMSCRIPTEN_BINDINGS() 1097 class_<SkVertices>("SkVertices") in EMSCRIPTEN_BINDINGS() 1098 .smart_ptr<sk_sp<SkVertices>>("sk_sp<SkVertices>") in EMSCRIPTEN_BINDINGS() 1099 …("_applyBones", optional_override([](SkVertices& self, uintptr_t /* Bone* */ bptr, int boneCount)-… in EMSCRIPTEN_BINDINGS() 1104 .function("bounds", &SkVertices::bounds) in EMSCRIPTEN_BINDINGS() 1105 .function("mode", &SkVertices::mode) in EMSCRIPTEN_BINDINGS() [all …]
|
/third_party/skia/src/gpu/ops/ |
D | DrawVerticesOp.cpp | 204 sk_sp<SkVertices>, 255 sk_sp<SkVertices> fVertices; 303 sk_sp<SkVertices> vertices, in DrawVerticesOpImpl() 574 static GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType() 576 case SkVertices::kTriangles_VertexMode: in SkVertexModeToGrPrimitiveType() 578 case SkVertices::kTriangleStrip_VertexMode: in SkVertexModeToGrPrimitiveType() 580 case SkVertices::kTriangleFan_VertexMode: in SkVertexModeToGrPrimitiveType() 590 sk_sp<SkVertices> vertices, in Make() 719 static constexpr SkVertices::VertexMode kIgnoredMode = SkVertices::kTriangles_VertexMode; in GR_DRAW_OP_TEST_DEFINE() 720 sk_sp<SkVertices> vertices = SkVertices::MakeCopy(kIgnoredMode, vertexCount, positions.begin(), in GR_DRAW_OP_TEST_DEFINE()
|
D | DrawVerticesOp.h | 19 class SkVertices; variable 32 sk_sp<SkVertices>,
|
/third_party/flutter/skia/src/gpu/ |
D | SkGr.h | 152 static inline GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType() 154 case SkVertices::kTriangles_VertexMode: in SkVertexModeToGrPrimitiveType() 156 case SkVertices::kTriangleStrip_VertexMode: in SkVertexModeToGrPrimitiveType() 158 case SkVertices::kTriangleFan_VertexMode: in SkVertexModeToGrPrimitiveType()
|
/third_party/skia/samplecode/ |
D | SampleVertices.cpp | 79 auto verts = SkVertices::MakeCopy(fRecs[i].fMode, fRecs[i].fCount, in onDrawContent() 114 SkVertices::VertexMode fMode; 127 rec->fMode = SkVertices::kTriangles_VertexMode; in make_tris() 144 rec->fMode = SkVertices::kTriangleFan_VertexMode; in make_fan() 175 rec->fMode = SkVertices::kTriangleStrip_VertexMode; in make_strip()
|