Home
last modified time | relevance | path

Searched refs:SkVertices (Results 1 - 25 of 67) sorted by relevance

123

/third_party/skia/tests/
H A DVerticesTest.cpp10 #include "include/core/SkVertices.h"
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 in DEF_TEST()
[all...]
/third_party/skia/src/core/
H A DSkVertices.cpp8 #include "include/core/SkVertices.h"
32 struct SkVertices::Desc {
40 struct SkVertices::Sizes {
71 fTotal = safe.add(sizeof(SkVertices), in Sizes()
86 size_t fTotal = 0; // size of entire SkVertices allocation (obj + arrays)
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
[all...]
H A DSkVerticesPriv.h11 #include "include/core/SkVertices.h"
18 /** Class that adds methods to SkVertices that are only intended for use internal to Skia.
19 This class is purely a privileged window into SkVertices. It should never have additional
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
56 inline SkVerticesPriv SkVertices::priv() { return SkVerticesPriv(this); } in priv()
58 inline const SkVerticesPriv SkVertices
[all...]
H A 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()
H A DSkDraw.h31 class SkVertices;
67 void drawVertices(const SkVertices*, SkBlendMode, const SkPaint&) const;
127 void drawFixedVertices(const SkVertices* vertices,
H A DSkPictureRecord.h15 #include "include/core/SkVertices.h"
50 const SkTArray<sk_sp<const SkVertices>>& getVertices() const { in getVertices()
147 void addVertices(const SkVertices*);
200 void onDrawVerticesObject(const SkVertices*, SkBlendMode, const SkPaint&) override;
249 SkTArray<sk_sp<const SkVertices>> fVertices;
H A DSkPictureData.h130 const SkVertices* getVertices(SkReadBuffer* reader) const { in getVertices()
153 SkTArray<sk_sp<const SkVertices>> fVertices;
H A DSkVertState.h11 #include "include/core/SkVertices.h"
43 Proc chooseProc(SkVertices::VertexMode mode);
H A DSkDevice.cpp16 #include "include/core/SkVertices.h"
219 uint32_t flags = SkVertices::kHasTexCoords_BuilderFlag; in drawAtlas()
221 flags |= SkVertices::kHasColors_BuilderFlag; in drawAtlas()
223 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, vertexCount, 0, flags); in drawAtlas()
/third_party/skia/include/core/
H A DSkVertices.h22 class SK_API SkVertices : public SkNVRefCnt<SkVertices> { class
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;
103 /** Writes text representation of SkVertices to string.
111 SkVertices() {} in SkVertices() function in SkVertices
116 friend class SkNVRefCnt<SkVertices>;
[all...]
/third_party/skia/docs/examples/
H A Ddraw_vertices.cpp13 SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, 3, pts, nullptr, colors), in REG_FIDDLE()
21 SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, 3, pts, texs, nullptr), in REG_FIDDLE()
H A DCanvas_drawVertices.cpp10 auto vertices = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in REG_FIDDLE()
H A DCanvas_drawVertices_2.cpp12 auto vertices = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in REG_FIDDLE()
/third_party/skia/gm/
H A Dvertices.cpp23 #include "include/core/SkVertices.h"
192 auto v = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode,
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 in DEF_SIMPLE_GM()
[all...]
H A Druntimecolorfilter.cpp19 #include "include/core/SkVertices.h"
119 auto verts = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, 4, pos, pos, kColors); in DEF_SIMPLE_GM()
/third_party/skia/src/utils/
H A DSkShadowUtils.cpp15 #include "include/core/SkVertices.h"
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()
241 sk_sp<SkVertices> find(const SpotVerticesFactory& spot, const SkMatrix& matrix, in find()
246 sk_sp<SkVertices> add(const SkPath& devPath, const SpotVerticesFactory& spot, in add()
258 sk_sp<SkVertices> find(const FACTORY& factory, const SkMatrix& matrix, in find()
279 sk_sp<SkVertices> add(const SkPath& path, const FACTORY& factory, const SkMatrix& matrix, in add()
281 sk_sp<SkVertices> vertice in add()
458 draw_shadow(const FACTORY& factory, std::function<void(const SkVertices*, SkBlendMode, const SkPaint&, SkScalar tx, SkScalar ty, bool)> drawProc, ShadowedPath& path, SkColor color, bool isLimitElevation = false) draw_shadow() argument
[all...]
H A DSkShadowTessellator.h19 class SkVertices;
30 SK_API sk_sp<SkVertices> MakeAmbient(const SkPath& path, const SkMatrix& ctm,
38 SK_API sk_sp<SkVertices> MakeSpot(const SkPath& path, const SkMatrix& ctm, const SkPoint3& zPlane,
H A DSkPatchUtils.h15 class SkVertices;
52 static sk_sp<SkVertices> MakeVertices(const SkPoint cubics[12], const SkColor colors[4],
H A DSkPatchUtils.cpp10 #include "include/core/SkVertices.h"
237 sk_sp<SkVertices> SkPatchUtils::MakeVertices(const SkPoint cubics[12], const SkColor srcColors[4], in MakeVertices()
274 flags |= SkVertices::kHasTexCoords_BuilderFlag; in MakeVertices()
277 flags |= SkVertices::kHasColors_BuilderFlag; in MakeVertices()
284 SkVertices::Builder builder(SkVertices::kTriangles_VertexMode, vertexCount, indexCount, flags); in MakeVertices()
/third_party/skia/src/gpu/ops/
H A DDrawVerticesOp.h19 class SkVertices;
24 * Draw a SkVertices. The GrPaint param's color is used if the vertices lack per-vertex color.
26 * primitive type drawn is derived from the SkVertices object, unless overridePrimType is
28 * which should match the number of extra per-vertex values in the SkVertices.
32 sk_sp<SkVertices>,
H A DDrawVerticesOp.cpp212 sk_sp<SkVertices>,
263 sk_sp<SkVertices> fVertices;
294 // the SkVertices mode (though fPrimitiveType may have been inferred from it).
311 sk_sp<SkVertices> vertices, in DrawVerticesOpImpl()
582 static GrPrimitiveType SkVertexModeToGrPrimitiveType(SkVertices::VertexMode mode) { in SkVertexModeToGrPrimitiveType()
584 case SkVertices::kTriangles_VertexMode: in SkVertexModeToGrPrimitiveType()
586 case SkVertices::kTriangleStrip_VertexMode: in SkVertexModeToGrPrimitiveType()
588 case SkVertices::kTriangleFan_VertexMode: in SkVertexModeToGrPrimitiveType()
598 sk_sp<SkVertices> vertices, in Make()
727 static constexpr SkVertices
[all...]
/third_party/skia/samplecode/
H A DSampleVertices.cpp17 #include "include/core/SkVertices.h"
79 auto verts = SkVertices::MakeCopy(fRecs[i].fMode, fRecs[i].fCount,
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()
H A DSamplePatch.cpp19 #include "include/core/SkVertices.h"
180 canvas->drawVertices(SkVertices::MakeCopy(SkVertices::kTriangleStrip_VertexMode, stripCount, in draw()
324 static sk_sp<SkVertices> make_verts(const SkPath& path, SkScalar width) { in make_verts()
347 unsigned flags = SkVertices::kHasColors_BuilderFlag; in make_verts()
348 SkVertices::Builder builder(SkVertices::kTriangleStrip_VertexMode, in make_verts()
363 sk_sp<SkVertices> fVertices[N];
H A DSampleSlides.cpp9 #include "include/core/SkVertices.h"
261 SkVertices::VertexMode fMode;
274 rec->fMode = SkVertices::kTriangles_VertexMode; in make_tris()
291 rec->fMode = SkVertices::kTriangleFan_VertexMode; in make_fan()
322 rec->fMode = SkVertices::kTriangleStrip_VertexMode; in make_strip()
367 auto verts = SkVertices::MakeCopy(fRecs[i].fMode, fRecs[i].fCount, in mesh_slide()
/third_party/skia/bench/
H A DVertBench.cpp13 #include "include/core/SkVertices.h"
133 auto verts = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, PTS,

Completed in 14 milliseconds

123