/third_party/skia/tests/ |
H A D | VerticesTest.cpp | 10 #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 D | SkVertices.cpp | 8 #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 D | SkVerticesPriv.h | 11 #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 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()
|
H A D | SkDraw.h | 31 class SkVertices; 67 void drawVertices(const SkVertices*, SkBlendMode, const SkPaint&) const; 127 void drawFixedVertices(const SkVertices* vertices,
|
H A D | SkPictureRecord.h | 15 #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 D | SkPictureData.h | 130 const SkVertices* getVertices(SkReadBuffer* reader) const { in getVertices() 153 SkTArray<sk_sp<const SkVertices>> fVertices;
|
H A D | SkVertState.h | 11 #include "include/core/SkVertices.h" 43 Proc chooseProc(SkVertices::VertexMode mode);
|
H A D | SkDevice.cpp | 16 #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 D | SkVertices.h | 22 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 D | draw_vertices.cpp | 13 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 D | Canvas_drawVertices.cpp | 10 auto vertices = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in REG_FIDDLE()
|
H A D | Canvas_drawVertices_2.cpp | 12 auto vertices = SkVertices::MakeCopy(SkVertices::kTriangleFan_VertexMode, in REG_FIDDLE()
|
/third_party/skia/gm/ |
H A D | vertices.cpp | 23 #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 D | runtimecolorfilter.cpp | 19 #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 D | SkShadowUtils.cpp | 15 #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 D | SkShadowTessellator.h | 19 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 D | SkPatchUtils.h | 15 class SkVertices; 52 static sk_sp<SkVertices> MakeVertices(const SkPoint cubics[12], const SkColor colors[4],
|
H A D | SkPatchUtils.cpp | 10 #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 D | DrawVerticesOp.h | 19 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 D | DrawVerticesOp.cpp | 212 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 D | SampleVertices.cpp | 17 #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 D | SamplePatch.cpp | 19 #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 D | SampleSlides.cpp | 9 #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 D | VertBench.cpp | 13 #include "include/core/SkVertices.h" 133 auto verts = SkVertices::MakeCopy(SkVertices::kTriangles_VertexMode, PTS,
|