Home
last modified time | relevance | path

Searched refs:SkPathBuilder (Results 1 – 25 of 95) sorted by relevance

1234

/external/skia/include/core/
DSkPathBuilder.h25 class SK_API SkPathBuilder {
27 SkPathBuilder();
28 SkPathBuilder(SkPathFillType);
29 SkPathBuilder(const SkPath&);
30 SkPathBuilder(const SkPathBuilder&) = default;
31 ~SkPathBuilder();
33 SkPathBuilder& operator=(const SkPath&);
34 SkPathBuilder& operator=(const SkPathBuilder&) = default;
42 SkPathBuilder& setFillType(SkPathFillType ft) { fFillType = ft; return *this; } in setFillType()
43 SkPathBuilder& setIsVolatile(bool isVolatile) { fIsVolatile = isVolatile; return *this; } in setIsVolatile()
[all …]
DBUILD.bazel74 "SkPathBuilder.h",
135 "SkPathBuilder.h",
/external/skia/src/core/
DSkPathBuilder.cpp26 SkPathBuilder::SkPathBuilder() { in SkPathBuilder() function in SkPathBuilder
30 SkPathBuilder::SkPathBuilder(SkPathFillType ft) { in SkPathBuilder() function in SkPathBuilder
35 SkPathBuilder::SkPathBuilder(const SkPath& src) { in SkPathBuilder() function in SkPathBuilder
39 SkPathBuilder::~SkPathBuilder() { in ~SkPathBuilder()
42 SkPathBuilder& SkPathBuilder::reset() { in reset()
59 SkPathBuilder& SkPathBuilder::operator=(const SkPath& src) { in operator =()
75 void SkPathBuilder::incReserve(int extraPtCount, int extraVbCount) { in incReserve()
80 SkRect SkPathBuilder::computeBounds() const { in computeBounds()
94 SkPathBuilder& SkPathBuilder::moveTo(SkPoint pt) { in moveTo()
106 SkPathBuilder& SkPathBuilder::lineTo(SkPoint pt) { in lineTo()
[all …]
/external/skia/gm/
Dhairlines.cpp35 SkPathBuilder lineAngles; in onOnceBeforeDraw()
49 fPaths.push_back(SkPathBuilder().moveTo(0, -10) in onOnceBeforeDraw()
53 fPaths.push_back(SkPathBuilder().moveTo(0, -5) in onOnceBeforeDraw()
57 fPaths.push_back(SkPathBuilder().moveTo(0, -2) in onOnceBeforeDraw()
61 fPaths.push_back(SkPathBuilder().moveTo(0, -1) in onOnceBeforeDraw()
65 fPaths.push_back(SkPathBuilder().moveTo(0, -1) in onOnceBeforeDraw()
69 fPaths.push_back(SkPathBuilder().moveTo(0, -0) in onOnceBeforeDraw()
73 fPaths.push_back(SkPathBuilder().moveTo(0, -0) in onOnceBeforeDraw()
80 fPaths.push_back(SkPathBuilder().moveTo(4, 6) in onOnceBeforeDraw()
85 fPaths.push_back(SkPathBuilder().moveTo(5, 1) in onOnceBeforeDraw()
[all …]
Dconicpaths.cpp34 SkPathBuilder b; in append_path()
40 this->append_path([](SkPathBuilder* conicCircle) { in onOnceBeforeDraw()
49 this->append_path([](SkPathBuilder* hyperbola) { in onOnceBeforeDraw()
54 this->append_path([](SkPathBuilder* thinHyperbola) { in onOnceBeforeDraw()
59 this->append_path([](SkPathBuilder* veryThinHyperbola) { in onOnceBeforeDraw()
64 this->append_path([](SkPathBuilder* closedHyperbola) { in onOnceBeforeDraw()
69 this->append_path([](SkPathBuilder* nearParabola) { in onOnceBeforeDraw()
75 this->append_path([](SkPathBuilder* thinEllipse) { in onOnceBeforeDraw()
80 this->append_path([](SkPathBuilder* veryThinEllipse) { in onOnceBeforeDraw()
85 this->append_path([](SkPathBuilder* closedEllipse) { in onOnceBeforeDraw()
[all …]
Ddegeneratesegments.cpp37 typedef SkPoint (*AddSegmentFunc)(SkPathBuilder&, SkPoint&);
42 static SkPoint AddMove(SkPathBuilder& path, SkPoint& startPt) { in AddMove()
48 static SkPoint AddMoveClose(SkPathBuilder& path, SkPoint& startPt) { in AddMoveClose()
55 static SkPoint AddDegenLine(SkPathBuilder& path, SkPoint& startPt) { in AddDegenLine()
60 static SkPoint AddMoveDegenLine(SkPathBuilder& path, SkPoint& startPt) { in AddMoveDegenLine()
67 static SkPoint AddMoveDegenLineClose(SkPathBuilder& path, SkPoint& startPt) { in AddMoveDegenLineClose()
75 static SkPoint AddDegenQuad(SkPathBuilder& path, SkPoint& startPt) { in AddDegenQuad()
80 static SkPoint AddMoveDegenQuad(SkPathBuilder& path, SkPoint& startPt) { in AddMoveDegenQuad()
87 static SkPoint AddMoveDegenQuadClose(SkPathBuilder& path, SkPoint& startPt) { in AddMoveDegenQuadClose()
95 static SkPoint AddDegenCubic(SkPathBuilder& path, SkPoint& startPt) { in AddDegenCubic()
[all …]
Dconcavepaths.cpp83 auto path = SkPathBuilder().addPolygon({{20,20}, {60,50}, {20,80}}, false) in test_fast_forward()
94 auto path = SkPathBuilder().addPolygon({{20,20}, {80,20}, {80,80}, {20,80}}, false) in test_hole()
154 auto path = SkPathBuilder().addPolygon({{20,80}, {80,80}, {80,20}, {20,20}}, false) in test_partners()
165 SkPathBuilder path; in test_winding_merged_to_zero()
182 SkPathBuilder path; in test_monotone_1()
194 SkPathBuilder path; in test_monotone_2()
206 SkPathBuilder path; in test_monotone_3()
218 SkPathBuilder path; in test_monotone_4()
233 SkPathBuilder path; in test_monotone_5()
245 SkPathBuilder path; in test_degenerate()
[all …]
Dcollapsepaths.cpp15 SkPathBuilder path; in test_collapse1()
29 SkPathBuilder path; in test_collapse2()
41 SkPathBuilder path; in test_collapse3()
53 SkPathBuilder path; in test_collapse4()
65 SkPathBuilder path; in test_collapse5()
78 SkPathBuilder path; in test_collapse6()
91 SkPathBuilder path; in test_collapse7()
104 SkPathBuilder path; in test_collapse8()
117 SkPathBuilder path; in test_collapse9()
134 SkPathBuilder path; in test_collapse10()
Darcto.cpp77 SkPathBuilder svgArc;
80 svgArc.arcTo({oval.width() / 2, ovalHeight}, angle, SkPathBuilder::kSmall_ArcSize,
85 svgArc.arcTo({oval.width() / 2, ovalHeight}, angle, SkPathBuilder::kLarge_ArcSize,
113 SkPathBuilder path;
115 .arcTo({0, 0}, 0, SkPathBuilder::kLarge_ArcSize, SkPathDirection::kCW, {200, 200});
119 .arcTo({80, 80}, 0, SkPathBuilder::kLarge_ArcSize, SkPathDirection::kCW, {200, 100});
287 SkPathBuilder p;
Dpathfill.cpp46 SkPathBuilder().moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])) in make_triangle()
60 SkPathBuilder().addRect(r).offset(10, 0).detach(), in make_rect()
69 SkPathBuilder().addOval(r).offset(10, 0).detach(), in make_oval()
81 SkPathBuilder builder; in make_sawtooth()
100 SkPathBuilder builder; in make_house()
143 SkPathBuilder builder; in make_star()
160 SkPathBuilder().moveTo(30, 30) in make_line()
173 SkPathBuilder path; in make_info()
204 SkPathBuilder path; in make_accessibility()
238 SkPathBuilder path; in make_visualizer()
[all …]
Daaa.cpp47 SkPathBuilder pb; in DEF_SIMPLE_GM()
102 SkPathBuilder builder; in DEF_SIMPLE_GM()
125 canvas->drawPath(SkPathBuilder().addRect({20, 20, 100.4999f, 100}) in DEF_SIMPLE_GM()
130 canvas->drawPath(SkPathBuilder().addRect({20, 20, 100.1f, 100}) in DEF_SIMPLE_GM()
Dsmallpaths.cpp34 SkPathBuilder().moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])) in make_triangle()
69 SkPathBuilder b; in make_star()
85 SkPathBuilder b; in make_three_line()
104 SkPathBuilder b; in make_arrow()
123 SkPathBuilder b; in make_curve()
135 SkPathBuilder b; in make_battery()
162 SkPathBuilder b; in make_battery2()
187 SkPathBuilder b; in make_ring()
Demptypath.cpp129 SkPathBuilder builder; in make_path_move()
137 SkPathBuilder builder; in make_path_move_close()
145 SkPathBuilder builder; in make_path_move_line()
153 return SkPathBuilder().moveTo(kPts[0]) in make_path_move_mix()
Daddarc.cpp56 SkPathBuilder path; in onDraw()
101 SkPathMeasure meas(SkPathBuilder().addArc(oval, 0, deg).detach(), false);
216 static void html_canvas_arc(SkPathBuilder* path, SkScalar x, SkScalar y, SkScalar r, SkScalar start,
258 SkPathBuilder path;
287 SkPathBuilder path;
Ddaa.cpp36 SkPath path = SkPathBuilder().addPolygon(tri1, std::size(tri1), false)
76 SkPath path = SkPathBuilder().addPolygon({{0,0},{0,K},{K*0.5f,K},{K*0.5f,0}}, false)
95 SkPath path = SkPathBuilder().addPolygon({{0,0},{0,K},{K*0.5f,K},{K*0.5f,0}}, false)
Dbeziers.cpp27 SkPathBuilder builder; in rnd_quad()
48 SkPathBuilder builder; in rnd_cubic()
Dnested.cpp56 static void AddShape(SkPathBuilder* b, const SkRect& rect, Shapes shape, SkPathDirection dir) { in AddShape()
106 SkPathBuilder builder; in onDraw()
Dconvexpolyclip.cpp126 SkPathBuilder hexagon; in onOnceBeforeDraw()
257 return SkPathBuilder(fPathBuilder).close().detach(); in asClosedPath()
296 SkPathBuilder fPathBuilder;
Dblurs.cpp91 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
109 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
Dbug615686.cpp18 canvas->drawPath(SkPathBuilder().moveTo(0, 0)
Dcrbug_788500.cpp14 SkPathBuilder path;
/external/skia/modules/jetski/src/
DPathBuilder.cpp15 return reinterpret_cast<jlong>(new SkPathBuilder()); in PathBuilder_Create()
19 delete reinterpret_cast<SkPathBuilder*>(native_pathBuilder); in PathBuilder_Release()
23 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_MoveTo()
29 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_LineTo()
35 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_QuadTo()
41 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_ConicTo()
49 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_CubicTo()
55 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_Close()
61 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_SetFillType()
80 if (auto* pathBuilder = reinterpret_cast<SkPathBuilder*>(native_pathBuilder)) { in PathBuilder_MakePath()
/external/skia/tests/
DPathBuilderTest.cpp33 SkPathBuilder b; in DEF_TEST()
64 SkPathBuilder b(fillType); in DEF_TEST()
112 SkPathBuilder b; in DEF_TEST()
133 SkPathBuilder b; in DEF_TEST()
200 auto bp = SkPathBuilder().addOval(r, dir, i).detach(); in DEF_TEST()
205 auto bp = SkPathBuilder().addOval(r, dir).detach(); in DEF_TEST()
211 bp = SkPathBuilder().addOval(r, dir).lineTo(10, 10).detach(); in DEF_TEST()
213 bp = SkPathBuilder().lineTo(10, 10).addOval(r, dir).detach(); in DEF_TEST()
223 SkPathBuilder b; in DEF_TEST()
231 auto bp = SkPathBuilder().addRRect(rr, dir).detach(); in DEF_TEST()
[all …]
/external/skia/src/gpu/ganesh/
DGrTestUtils.cpp172 gPath[0] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
176 gPath[1] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
180 gPath[2] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
184 gPath[3] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
188 gPath[4] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
195 gPath[5] = SkPathBuilder().moveTo(0.0f, 0.0f) in TestPath()
202 gPath[6] = SkPathBuilder().moveTo(0.0f, 0.0f) in TestPath()
/external/skia/tools/viewer/
DChartSlide.cpp34 SkPathBuilder* plot, SkPathBuilder* fill) { in gen_paths()
135 SkPathBuilder plotPath, fillPath; in draw()

1234