Home
last modified time | relevance | path

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

1234

/external/skia/include/core/
DSkPathBuilder.h16 class SK_API SkPathBuilder {
18 SkPathBuilder();
19 SkPathBuilder(SkPathFillType);
20 SkPathBuilder(const SkPath&);
21 SkPathBuilder(const SkPathBuilder&) = default;
22 ~SkPathBuilder();
24 SkPathBuilder& operator=(const SkPath&);
25 SkPathBuilder& operator=(const SkPathBuilder&) = default;
33 SkPathBuilder& setFillType(SkPathFillType ft) { fFillType = ft; return *this; } in setFillType()
34 SkPathBuilder& setIsVolatile(bool isVolatile) { fIsVolatile = isVolatile; return *this; } in setIsVolatile()
[all …]
/external/skia/src/core/
DSkPathBuilder.cpp17 SkPathBuilder::SkPathBuilder() { in SkPathBuilder() function in SkPathBuilder
21 SkPathBuilder::SkPathBuilder(SkPathFillType ft) { in SkPathBuilder() function in SkPathBuilder
26 SkPathBuilder::SkPathBuilder(const SkPath& src) { in SkPathBuilder() function in SkPathBuilder
30 SkPathBuilder::~SkPathBuilder() { in ~SkPathBuilder()
33 SkPathBuilder& SkPathBuilder::reset() { in reset()
52 SkPathBuilder& SkPathBuilder::operator=(const SkPath& src) { in operator =()
68 void SkPathBuilder::incReserve(int extraPtCount, int extraVbCount) { in incReserve()
73 SkRect SkPathBuilder::computeBounds() const { in computeBounds()
87 SkPathBuilder& SkPathBuilder::moveTo(SkPoint pt) { in moveTo()
96 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.cpp78 SkPathBuilder svgArc;
81 svgArc.arcTo({oval.width() / 2, ovalHeight}, angle, SkPathBuilder::kSmall_ArcSize,
86 svgArc.arcTo({oval.width() / 2, ovalHeight}, angle, SkPathBuilder::kLarge_ArcSize,
114 SkPathBuilder path;
116 .arcTo({0, 0}, 0, SkPathBuilder::kLarge_ArcSize, SkPathDirection::kCW, {200, 200});
120 .arcTo({80, 80}, 0, SkPathBuilder::kLarge_ArcSize, SkPathDirection::kCW, {200, 100});
201 SkPathBuilder p;
Dpathfill.cpp44 SkPathBuilder().moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])) in make_triangle()
58 SkPathBuilder().addRect(r).offset(10, 0).detach(), in make_rect()
67 SkPathBuilder().addOval(r).offset(10, 0).detach(), in make_oval()
79 SkPathBuilder builder; in make_sawtooth()
98 SkPathBuilder builder; in make_house()
141 SkPathBuilder builder; in make_star()
158 SkPathBuilder().moveTo(30, 30) in make_line()
171 SkPathBuilder path; in make_info()
202 SkPathBuilder path; in make_accessibility()
236 SkPathBuilder path; in make_visualizer()
[all …]
Daaa.cpp48 SkPathBuilder path; 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, SK_ARRAY_COUNT(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)
Dnested.cpp56 static void AddShape(SkPathBuilder* b, const SkRect& rect, Shapes shape, SkPathDirection dir) { in AddShape()
106 SkPathBuilder builder; in onDraw()
Dbeziers.cpp27 SkPathBuilder builder; in rnd_quad()
48 SkPathBuilder builder; in rnd_cubic()
Dpatheffects.cpp76 SkPathBuilder b; in one_d_pe()
149 path = SkPathBuilder().addOval(r, SkPathDirection::kCW) in onDraw()
195 path1 = SkPathBuilder().moveTo(20, 20) in onDraw()
Dbug615686.cpp18 canvas->drawPath(SkPathBuilder().moveTo(0, 0)
Dcrbug_788500.cpp14 SkPathBuilder path;
Dblurs.cpp91 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
109 SkPath path = SkPathBuilder().addRect(outer, SkPathDirection::kCW)
Dconvexpolyclip.cpp122 SkPathBuilder hexagon; in onOnceBeforeDraw()
256 return SkPathBuilder(fPathBuilder).close().detach(); in asClosedPath()
296 SkPathBuilder fPathBuilder;
Dcrbug_913349.cpp20 SkPathBuilder path;
/external/skia/tests/
DPathBuilderTest.cpp19 SkPathBuilder b; in DEF_TEST()
50 SkPathBuilder b(fillType); in DEF_TEST()
98 SkPathBuilder b; in DEF_TEST()
119 SkPathBuilder b; in DEF_TEST()
186 auto bp = SkPathBuilder().addOval(r, dir, i).detach(); in DEF_TEST()
191 auto bp = SkPathBuilder().addOval(r, dir).detach(); in DEF_TEST()
197 bp = SkPathBuilder().addOval(r, dir).lineTo(10, 10).detach(); in DEF_TEST()
199 bp = SkPathBuilder().lineTo(10, 10).addOval(r, dir).detach(); in DEF_TEST()
209 SkPathBuilder b; in DEF_TEST()
217 auto bp = SkPathBuilder().addRRect(rr, dir).detach(); in DEF_TEST()
[all …]
/external/skia/src/gpu/
DGrTestUtils.cpp171 gPath[0] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
175 gPath[1] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
179 gPath[2] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
183 gPath[3] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
187 gPath[4] = SkPathBuilder().moveTo(0.f, 0.f) in TestPath()
194 gPath[5] = SkPathBuilder().moveTo(0.0f, 0.0f) in TestPath()
201 gPath[6] = SkPathBuilder().moveTo(0.0f, 0.0f) in TestPath()
/external/skia/samplecode/
DSampleChart.cpp33 SkPathBuilder* plot, SkPathBuilder* fill) { in gen_paths()
133 SkPathBuilder plotPath, fillPath; in onDrawContent()

1234