Home
last modified time | relevance | path

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

12345678910>>...49

/external/skia/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 …]
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 …]
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 …]
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/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 …]
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 …]
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 …]
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/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/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/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/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/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/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/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/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/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 …]

12345678910>>...49