Home
last modified time | relevance | path

Searched refs:SkPath (Results 1 – 25 of 1397) sorted by relevance

12345678910>>...56

/external/skqp/tests/
DSubsetPath.cpp11 SubsetPath::SubsetPath(const SkPath& path) in SubsetPath()
27 bool SubsetPath::subset(bool testFailed, SkPath* sub) { in subset()
62 SubsetContours::SubsetContours(const SkPath& path) in SubsetContours()
64 SkPath::RawIter iter(fPath); in SubsetContours()
69 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in SubsetContours()
71 case SkPath::kMove_Verb: in SubsetContours()
73 case SkPath::kLine_Verb: in SubsetContours()
74 case SkPath::kQuad_Verb: in SubsetContours()
75 case SkPath::kConic_Verb: in SubsetContours()
76 case SkPath::kCubic_Verb: in SubsetContours()
[all …]
DPathOpsAsWindingTest.cpp12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPath::Direction dir) { in build_squircle()
13 SkPath path; in build_squircle()
14 bool reverse = SkPath::kCCW_Direction == dir; in build_squircle()
16 case SkPath::kLine_Verb: in build_squircle()
20 case SkPath::kQuad_Verb: in build_squircle()
27 case SkPath::kConic_Verb: in build_squircle()
31 case SkPath::kCubic_Verb: { in build_squircle()
46 SkPath temp; in build_squircle()
54 SkPath test, result; in DEF_TEST()
61 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
[all …]
DTessellatingPathRendererTests.cpp28 static SkPath create_path_0() { in create_path_0()
29 SkPath path; in create_path_0()
42 static SkPath create_path_1() { in create_path_1()
43 SkPath path; in create_path_1()
55 static SkPath create_path_2() { in create_path_2()
56 SkPath path; in create_path_2()
70 static SkPath create_path_3() { in create_path_3()
71 SkPath path; in create_path_3()
83 static SkPath create_path_4() { in create_path_4()
84 SkPath path; in create_path_4()
[all …]
DPathTest.cpp44 SkPath path; in test_add_rrect()
51 SkPath path; in test_skbug_3469()
76 static void make_path_crbug364224(SkPath* path) { in make_path_crbug364224()
100 static void make_path_crbug364224_simplified(SkPath* path) { in make_path_crbug364224_simplified()
109 SkPath path; in test_sect_with_horizontal_needs_pinning()
121 SkPath path; in test_path_crbug364224()
133 static void test_draw_AA_path(int width, int height, const SkPath& path) { in test_draw_AA_path()
143 SkPath path; in test_fuzz_crbug_638223()
152 SkPath path; in test_fuzz_crbug_643933()
167 SkPath path; in test_fuzz_crbug_647922()
[all …]
DPathOpsExtendedTest.h25 const SkPath& one, const SkPath& two, SkBitmap& bitmap);
28 const SkPath& one, const SkPath& two) { in comparePaths()
33 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths);
36 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
38 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
40 extern bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
42 extern bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
44 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state,
46 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename);
47 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path,
[all …]
DPathOpsBuilderTest.cpp15 SkPath result; in DEF_TEST()
27 SkPath rectPath; in DEF_TEST()
28 rectPath.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
29 rectPath.addRect(0, 1, 2, 3, SkPath::kCW_Direction); in DEF_TEST()
33 SkPath::Direction dir; in DEF_TEST()
36 REPORTER_ASSERT(reporter, dir == SkPath::kCCW_Direction); in DEF_TEST()
41 rectPath.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
42 rectPath.addRect(0, 1, 2, 3, SkPath::kCCW_Direction); in DEF_TEST()
47 REPORTER_ASSERT(reporter, dir == SkPath::kCCW_Direction); in DEF_TEST()
54 SkPath rect2, rect3; in DEF_TEST()
[all …]
DPathOpsSkpTest.cpp12 SkPath path; in skpcheeseandburger_com225()
13 path.setFillType(SkPath::kEvenOdd_FillType); in skpcheeseandburger_com225()
20 SkPath pathB; in skpcheeseandburger_com225()
21 pathB.setFillType(SkPath::kWinding_FillType); in skpcheeseandburger_com225()
373 SkPath path; in skpeverytechpro_blogspot_com100()
374 path.setFillType(SkPath::kEvenOdd_FillType); in skpeverytechpro_blogspot_com100()
397 SkPath pathB; in skpeverytechpro_blogspot_com100()
398 pathB.setFillType(SkPath::kWinding_FillType); in skpeverytechpro_blogspot_com100()
407 SkPath path; in skpflite_com41()
408 path.setFillType(SkPath::kEvenOdd_FillType); in skpflite_com41()
[all …]
DPathOpsOpTest.cpp13 PathTest_Private(SkPath* path) in PathTest_Private()
20 SkPath* fPath;
23 static void path_edit(const SkPoint& from, const SkPoint& to, SkPath* path) { in path_edit()
34 SkPath path, pathB; in cubicOp1d()
35 path.setFillType(SkPath::kWinding_FillType); in cubicOp1d()
39 pathB.setFillType(SkPath::kWinding_FillType); in cubicOp1d()
47 SkPath path, pathB; in cubicOp2d()
48 path.setFillType(SkPath::kWinding_FillType); in cubicOp2d()
52 pathB.setFillType(SkPath::kWinding_FillType); in cubicOp2d()
60 SkPath path, pathB; in cubicOp3d()
[all …]
DPathOpsBattles.cpp13 SkPath path1, path2; in issue414409()
43 SkPath path1, path2; in issue414409b()
45 path1.setFillType((SkPath::FillType) 0); in issue414409b()
55 path2.setFillType((SkPath::FillType) 1); in issue414409b()
66 SkPath path1, path2; in issue414409c()
67 path1.setFillType((SkPath::FillType) 1); in issue414409c()
79 path2.setFillType((SkPath::FillType) 0); in issue414409c()
92 SkPath path; in battleOp1()
93 path.setFillType((SkPath::FillType) 0); in battleOp1()
101 SkPath path1(path); in battleOp1()
[all …]
/external/skqp/fuzz/
DFuzzPathop.cpp26 SkPath path; in DEF_FUZZ()
27 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
28 SkPath::FillType ft; in DEF_FUZZ()
29 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
37 SkPath result; in DEF_FUZZ()
42 SkPath path; in DEF_FUZZ()
43 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
44 SkPath::FillType ft; in DEF_FUZZ()
45 fuzz->nextRange(&ft, 0, SkPath::kInverseEvenOdd_FillType); in DEF_FUZZ()
48 SkPath result; in DEF_FUZZ()
[all …]
/external/skia/include/core/
DSkPath.h44 class SK_API SkPath {
65 static SkPath Make(const SkPoint[], int pointCount,
70 static SkPath Rect(const SkRect&, SkPathDirection = SkPathDirection::kCW,
72 static SkPath Oval(const SkRect&, SkPathDirection = SkPathDirection::kCW);
73 static SkPath Oval(const SkRect&, SkPathDirection, unsigned startIndex);
74 static SkPath Circle(SkScalar center_x, SkScalar center_y, SkScalar radius,
76 static SkPath RRect(const SkRRect&, SkPathDirection dir = SkPathDirection::kCW);
77 static SkPath RRect(const SkRRect&, SkPathDirection, unsigned startIndex);
78 static SkPath RRect(const SkRect& bounds, SkScalar rx, SkScalar ry,
81 static SkPath Polygon(const SkPoint pts[], int count, bool isClosed,
[all …]
/external/skqp/modules/pathkit/
Dpathkit_wasm_bindings.cpp48 void VisitPath(const SkPath& p, VisitFunc&& f) { in VisitPath()
49 SkPath::RawIter iter(p); in VisitPath()
51 SkPath::Verb verb; in VisitPath()
52 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in VisitPath()
57 JSArray EMSCRIPTEN_KEEPALIVE ToCmds(const SkPath& path) { in ToCmds()
60 VisitPath(path, [&cmds](SkPath::Verb verb, const SkPoint pts[4], SkPath::RawIter iter) { in ToCmds()
63 case SkPath::kMove_Verb: in ToCmds()
66 case SkPath::kLine_Verb: in ToCmds()
69 case SkPath::kQuad_Verb: in ToCmds()
72 case SkPath::kConic_Verb: in ToCmds()
[all …]
/external/skia/src/core/
DSkPathPriv.h52 static SkPathFirstDirection ComputeFirstDirection(const SkPath&);
54 static bool IsClosedSingleContour(const SkPath& path) { in IsClosedSingleContour()
62 case SkPath::Verb::kMove_Verb: in IsClosedSingleContour()
68 case SkPath::Verb::kClose_Verb: in IsClosedSingleContour()
82 static int LeadingMoveToCount(const SkPath& path) { in LeadingMoveToCount()
86 if (verbs[i] != SkPath::Verb::kMove_Verb) { in LeadingMoveToCount()
93 static void AddGenIDChangeListener(const SkPath& path, sk_sp<SkIDChangeListener> listener) { in AddGenIDChangeListener()
102 static bool IsSimpleRect(const SkPath& path, bool isSimpleFill, SkRect* rect,
109 static void CreateDrawArcPath(SkPath* path, const SkRect& oval, SkScalar startAngle,
118 static void ShrinkToFit(SkPath* path) { in ShrinkToFit()
[all …]
/external/skqp/include/core/
DSkPath.h50 class SK_API SkPath {
76 SkPath();
90 SkPath(const SkPath& path);
94 ~SkPath();
108 SkPath& operator=(const SkPath& path);
117 friend SK_API bool operator==(const SkPath& a, const SkPath& b);
126 friend bool operator!=(const SkPath& a, const SkPath& b) {
140 bool isInterpolatable(const SkPath& compare) const;
161 bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
304 SkPath& reset();
[all …]
/external/skia/tests/
DTriangulatingPathRendererTests.cpp29 using CreatePathFn = SkPath(*)();
35 []() -> SkPath { in __anon0d4003b20102()
36 SkPath path; in __anon0d4003b20102()
49 []() -> SkPath { in __anon0d4003b20202()
50 SkPath path; in __anon0d4003b20202()
62 []() -> SkPath { in __anon0d4003b20302()
63 SkPath path; in __anon0d4003b20302()
77 []() -> SkPath { in __anon0d4003b20402()
78 SkPath path; in __anon0d4003b20402()
90 []() -> SkPath { in __anon0d4003b20502()
[all …]
DPathOpsExtendedTest.h25 const SkPath& one, const SkPath& two, SkBitmap& bitmap);
28 const SkPath& one, const SkPath& two) { in comparePaths()
33 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths);
36 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
38 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
40 extern bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
42 extern bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
44 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state,
46 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename);
47 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path,
[all …]
/external/skqp/src/core/
DSkPathPriv.h35 static FirstDirection AsFirstDirection(SkPath::Direction dir) { in AsFirstDirection()
58 static bool CheapComputeFirstDirection(const SkPath&, FirstDirection* dir);
66 static bool CheapIsFirstDirection(const SkPath& path, FirstDirection dir) { in CheapIsFirstDirection()
72 static bool IsClosedSingleContour(const SkPath& path) { in IsClosedSingleContour()
80 case SkPath::Verb::kMove_Verb: in IsClosedSingleContour()
86 case SkPath::Verb::kClose_Verb: in IsClosedSingleContour()
97 static void AddGenIDChangeListener(const SkPath& path, in AddGenIDChangeListener()
107 static bool IsSimpleClosedRect(const SkPath& path, SkRect* rect, SkPath::Direction* direction,
114 static void CreateDrawArcPath(SkPath* path, const SkRect& oval, SkScalar startAngle,
132 Verbs(const SkPath& path) : fPathRef(path.fPathRef.get()) {} in Verbs()
[all …]
/external/skqp/src/gpu/gl/
DGrGLPath.cpp14 inline GrGLubyte verb_to_gl_path_cmd(SkPath::Verb verb) { in verb_to_gl_path_cmd()
23 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in verb_to_gl_path_cmd()
24 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in verb_to_gl_path_cmd()
25 GR_STATIC_ASSERT(2 == SkPath::kQuad_Verb); in verb_to_gl_path_cmd()
26 GR_STATIC_ASSERT(3 == SkPath::kConic_Verb); in verb_to_gl_path_cmd()
27 GR_STATIC_ASSERT(4 == SkPath::kCubic_Verb); in verb_to_gl_path_cmd()
28 GR_STATIC_ASSERT(5 == SkPath::kClose_Verb); in verb_to_gl_path_cmd()
35 inline int num_coords(SkPath::Verb verb) { in num_coords()
44 GR_STATIC_ASSERT(0 == SkPath::kMove_Verb); in num_coords()
45 GR_STATIC_ASSERT(1 == SkPath::kLine_Verb); in num_coords()
[all …]
/external/skqp/src/pathops/
DSkOpEdgeBuilder.cpp29 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) { in can_add_curve()
30 if (SkPath::kMove_Verb == verb) { in can_add_curve()
36 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve()
39 void SkOpEdgeBuilder::addOperand(const SkPath& path) { in addOperand()
40 SkASSERT(fPathVerbs.count() > 0 && fPathVerbs.end()[-1] == SkPath::kDone_Verb); in addOperand()
63 *fPathVerbs.append() = SkPath::kLine_Verb; in closeContour()
68 if (SkPath::kLine_Verb == fPathVerbs[verbCount - 1] in closeContour()
76 *fPathVerbs.append() = SkPath::kClose_Verb; in closeContour()
84 SkPath::RawIter iter(*fPath); in preFetch()
88 SkPath::Verb verb; in preFetch()
[all …]
/external/skqp/include/pathops/
DSkPathOps.h14 class SkPath; variable
46 bool SK_API Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result);
60 bool SK_API Simplify(const SkPath& path, SkPath* result);
68 bool SK_API TightBounds(const SkPath& path, SkRect* result);
82 bool SK_API AsWinding(const SkPath& path, SkPath* result);
94 void add(const SkPath& path, SkPathOp _operator);
102 bool resolve(SkPath* result);
105 SkTArray<SkPath> fPathRefs;
108 static bool FixWinding(SkPath* path);
109 static void ReversePath(SkPath* path);
/external/skia/include/pathops/
DSkPathOps.h14 class SkPath; variable
46 bool SK_API Op(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result);
60 bool SK_API Simplify(const SkPath& path, SkPath* result);
68 bool SK_API TightBounds(const SkPath& path, SkRect* result);
82 bool SK_API AsWinding(const SkPath& path, SkPath* result);
94 void add(const SkPath& path, SkPathOp _operator);
102 bool resolve(SkPath* result);
105 SkTArray<SkPath> fPathRefs;
108 static bool FixWinding(SkPath* path);
109 static void ReversePath(SkPath* path);
/external/skia/fuzz/
DFuzzPathop.cpp26 SkPath path; in DEF_FUZZ()
27 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
37 SkPath result; in DEF_FUZZ()
42 SkPath path; in DEF_FUZZ()
43 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
48 SkPath result; in DEF_FUZZ()
58 SkPath path; in DEF_FUZZ()
59 FuzzEvilPath(fuzz, &path, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
64 SkPath path2; in DEF_FUZZ()
65 FuzzEvilPath(fuzz, &path2, SkPath::Verb::kDone_Verb); in DEF_FUZZ()
[all …]
/external/skia/src/pathops/
DSkOpEdgeBuilder.cpp33 static bool can_add_curve(SkPath::Verb verb, SkPoint* curve) { in can_add_curve()
34 if (SkPath::kMove_Verb == verb) { in can_add_curve()
40 return SkPath::kLine_Verb != verb || !SkDPoint::ApproximatelyEqual(curve[0], curve[1]); in can_add_curve()
43 void SkOpEdgeBuilder::addOperand(const SkPath& path) { in addOperand()
44 SkASSERT(fPathVerbs.count() > 0 && fPathVerbs.end()[-1] == SkPath::kDone_Verb); in addOperand()
67 *fPathVerbs.append() = SkPath::kLine_Verb; in closeContour()
72 if (SkPath::kLine_Verb == fPathVerbs[verbCount - 1] in closeContour()
80 *fPathVerbs.append() = SkPath::kClose_Verb; in closeContour()
92 auto verb = static_cast<SkPath::Verb>(pathVerb); in preFetch()
94 case SkPath::kMove_Verb: in preFetch()
[all …]
/external/skqp/samplecode/
DSampleAAGeometry.cpp24 if (SkPath::kQuad_Verb == fVerb) {
44 if (SkPath::kQuad_Verb <= fVerb) {
47 if (SkPath::kCubic_Verb == fVerb) {
49 } else if (SkPath::kConic_Verb == fVerb) {
96 static SkPath::Verb get_path_verb(int index, const SkPath& path) {
98 return SkPath::kMove_Verb;
101 SkPath::Verb verb;
102 SkPath::Iter iter(path, true);
104 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) {
111 return SkPath::kMove_Verb;
[all …]
/external/skia/modules/pathkit/
Dpathkit_wasm_bindings.cpp48 JSArray EMSCRIPTEN_KEEPALIVE ToCmds(const SkPath& path) { in ToCmds()
94 SkPath path; in FromCmds()
150 SkPath EMSCRIPTEN_KEEPALIVE NewPath() { in NewPath()
151 return SkPath(); in NewPath()
154 SkPath EMSCRIPTEN_KEEPALIVE CopyPath(const SkPath& a) { in CopyPath()
155 SkPath copy(a); in CopyPath()
159 bool EMSCRIPTEN_KEEPALIVE Equals(const SkPath& a, const SkPath& b) { in Equals()
173 void ApplyArcTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyArcTo()
178 void ApplyClose(SkPath& p) { in ApplyClose()
182 void ApplyConicTo(SkPath& p, SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, in ApplyConicTo()
[all …]

12345678910>>...56