Home
last modified time | relevance | path

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

12345678910>>...18

/external/skia/tests/
DPathOpsSimplifyTest.cpp12 SkPath path; in testLine1()
21 SkPath path; in testLine1x()
22 path.setFillType(SkPath::kEvenOdd_FillType); in testLine1x()
30 static void addInnerCWTriangle(SkPath& path) { in addInnerCWTriangle()
37 static void addInnerCCWTriangle(SkPath& path) { in addInnerCCWTriangle()
44 static void addOuterCWTriangle(SkPath& path) { in addOuterCWTriangle()
51 static void addOuterCCWTriangle(SkPath& path) { in addOuterCCWTriangle()
59 SkPath path; in testLine2()
66 SkPath path; in testLine2x()
67 path.setFillType(SkPath::kEvenOdd_FillType); in testLine2x()
[all …]
DPathOpsOpTest.cpp12 PathTest_Private(SkPath* path) in PathTest_Private()
19 SkPath* fPath;
22 static void path_edit(const SkPoint& from, const SkPoint& to, SkPath* path) { in path_edit()
33 SkPath path, pathB; in cubicOp1d()
34 path.setFillType(SkPath::kWinding_FillType); in cubicOp1d()
38 pathB.setFillType(SkPath::kWinding_FillType); in cubicOp1d()
46 SkPath path, pathB; in cubicOp2d()
47 path.setFillType(SkPath::kWinding_FillType); in cubicOp2d()
51 pathB.setFillType(SkPath::kWinding_FillType); in cubicOp2d()
59 SkPath path, pathB; in cubicOp3d()
[all …]
DSubsetPath.cpp10 SubsetPath::SubsetPath(const SkPath& path) in SubsetPath()
26 bool SubsetPath::subset(bool testFailed, SkPath* sub) { in subset()
61 SubsetContours::SubsetContours(const SkPath& path) in SubsetContours()
63 SkPath::RawIter iter(fPath); in SubsetContours()
68 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in SubsetContours()
70 case SkPath::kMove_Verb: in SubsetContours()
72 case SkPath::kLine_Verb: in SubsetContours()
73 case SkPath::kQuad_Verb: in SubsetContours()
74 case SkPath::kConic_Verb: in SubsetContours()
75 case SkPath::kCubic_Verb: in SubsetContours()
[all …]
DPathOpsExtendedTest.h29 const SkPath& one, const SkPath& two, SkBitmap& bitmap);
32 const SkPath& one, const SkPath& two) { in comparePaths()
37 extern bool drawAsciiPaths(const SkPath& one, const SkPath& two, bool drawPaths);
39 extern bool testPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
41 extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
43 extern bool testPathOpFailCheck(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
45 extern bool testPathFailOp(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b,
47 extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state,
49 extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename);
50 extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path,
[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 …]
DPathTest.cpp37 SkPath path; in test_add_rrect()
44 SkPath path; in test_skbug_3469()
69 static void make_path_crbug364224(SkPath* path) { in make_path_crbug364224()
93 static void make_path_crbug364224_simplified(SkPath* path) { in make_path_crbug364224_simplified()
100 SkPath path; in test_path_crbug364224()
116 static void make_path_crbugskia2820(SkPath* path, skiatest::Reporter* reporter) { in make_path_crbugskia2820()
130 SkPath path; in test_path_crbugskia2820()
138 static void make_path0(SkPath* path) { in make_path0()
149 static void make_path1(SkPath* path) { in make_path1()
153 typedef void (*PathProc)(SkPath*);
[all …]
DTessellatingPathRendererTests.cpp23 static SkPath create_path_0() { in create_path_0()
24 SkPath path; in create_path_0()
37 static SkPath create_path_1() { in create_path_1()
38 SkPath path; in create_path_1()
50 static SkPath create_path_2() { in create_path_2()
51 SkPath path; in create_path_2()
65 static SkPath create_path_3() { in create_path_3()
66 SkPath path; in create_path_3()
78 static SkPath create_path_4() { in create_path_4()
79 SkPath path; in create_path_4()
[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 …]
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 …]
DPathOpsInverseTest.cpp10 SkPath one, two; in DEF_TEST()
12 for (int oneFill = SkPath::kWinding_FillType; oneFill <= SkPath::kInverseEvenOdd_FillType; in DEF_TEST()
14 for (int oneDir = SkPath::kCW_Direction; oneDir != SkPath::kCCW_Direction; ++oneDir) { in DEF_TEST()
16 one.setFillType((SkPath::FillType) oneFill); in DEF_TEST()
17 one.addRect(0, 0, 6, 6, (SkPath::Direction) oneDir); in DEF_TEST()
18 for (int twoFill = SkPath::kWinding_FillType; in DEF_TEST()
19 twoFill <= SkPath::kInverseEvenOdd_FillType; ++twoFill) { in DEF_TEST()
20 for (int twoDir = SkPath::kCW_Direction; twoDir != SkPath::kCCW_Direction; in DEF_TEST()
23 two.setFillType((SkPath::FillType) twoFill); in DEF_TEST()
24 two.addRect(3, 3, 9, 9, (SkPath::Direction) twoDir); in DEF_TEST()
DPathOpsExtendedTest.cpp53 static void showPathData(const SkPath& path) { in showPathData()
54 SkPath::RawIter iter(path); in showPathData()
60 while ((verb = iter.next(pts)) != SkPath::kDone_Verb) { in showPathData()
62 case SkPath::kMove_Verb: in showPathData()
71 case SkPath::kLine_Verb: in showPathData()
77 case SkPath::kQuad_Verb: in showPathData()
83 case SkPath::kConic_Verb: in showPathData()
90 case SkPath::kCubic_Verb: in showPathData()
97 case SkPath::kClose_Verb: in showPathData()
170 static void scaleMatrix(const SkPath& one, const SkPath& two, SkMatrix& scale) { in scaleMatrix()
[all …]
DPathOpsOpCircleThreadedTest.cpp23 for (int e = SkPath::kWinding_FillType ; e <= SkPath::kEvenOdd_FillType; ++e) { in testOpCirclesMain()
24 for (int f = SkPath::kWinding_FillType ; f <= SkPath::kEvenOdd_FillType; ++f) { in testOpCirclesMain()
25 SkPath pathA, pathB; in testOpCirclesMain()
33 e == SkPath::kWinding_FillType ? "Winding" : e == SkPath::kEvenOdd_FillType in testOpCirclesMain()
38 f == SkPath::kWinding_FillType ? "Winding" : f == SkPath::kEvenOdd_FillType in testOpCirclesMain()
46 pathA.setFillType((SkPath::FillType) e); in testOpCirclesMain()
48 state.fD ? SkPath::kCW_Direction : SkPath::kCCW_Direction); in testOpCirclesMain()
49 pathB.setFillType((SkPath::FillType) f); in testOpCirclesMain()
51 d ? SkPath::kCW_Direction : SkPath::kCCW_Direction); in testOpCirclesMain()
DPathOpsOpRectThreadedTest.cpp30 for (int e = SkPath::kWinding_FillType ; e <= SkPath::kEvenOdd_FillType; ++e) { in testPathOpsRectsMain()
31 for (int f = SkPath::kWinding_FillType ; f <= SkPath::kEvenOdd_FillType; ++f) { in testPathOpsRectsMain()
40 e == SkPath::kWinding_FillType ? "Winding" : e == SkPath::kEvenOdd_FillType in testPathOpsRectsMain()
47 f == SkPath::kWinding_FillType ? "Winding" : f == SkPath::kEvenOdd_FillType in testPathOpsRectsMain()
57 SkPath pathA, pathB; in testPathOpsRectsMain()
58 pathA.setFillType((SkPath::FillType) e); in testPathOpsRectsMain()
60 SkIntToScalar(state.fB), SkPath::kCW_Direction); in testPathOpsRectsMain()
62 SkIntToScalar(state.fD), SkPath::kCW_Direction); in testPathOpsRectsMain()
64 pathB.setFillType((SkPath::FillType) f); in testPathOpsRectsMain()
66 SkIntToScalar(b), SkPath::kCW_Direction); in testPathOpsRectsMain()
[all …]
DPathOpsBuildUseTest.cpp14 SkPath path; in build1_1()
16 path.setFillType((SkPath::FillType) 0); in build1_1()
27 SkPath path0(path); in build1_1()
31 path.setFillType((SkPath::FillType) 0); in build1_1()
42 SkPath path1(path); in build1_1()
46 path.setFillType((SkPath::FillType) 0); in build1_1()
57 SkPath path2(path); in build1_1()
61 path.setFillType((SkPath::FillType) 0); in build1_1()
72 SkPath path3(path); in build1_1()
76 path.setFillType((SkPath::FillType) 0); in build1_1()
[all …]
DEmptyPathTest.cpp14 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, in drawAndTest()
62 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw, in iter_paint()
106 static void make_empty(SkPath*) {} in make_empty() argument
107 static void make_M(SkPath* path) { path->moveTo(CX, CY); } in make_M()
108 static void make_MM(SkPath* path) { path->moveTo(CX, CY); path->moveTo(CX, CY); } in make_MM()
109 static void make_MZM(SkPath* path) { path->moveTo(CX, CY); path->close(); path->moveTo(CX, CY); } in make_MZM()
110 static void make_L(SkPath* path) { path->moveTo(CX, CY); path->lineTo(CX, CY); } in make_L()
111 static void make_Q(SkPath* path) { path->moveTo(CX, CY); path->quadTo(CX, CY, CX, CY); } in make_Q()
112 static void make_C(SkPath* path) { path->moveTo(CX, CY); path->cubicTo(CX, CY, CX, CY, CX, CY); } in make_C()
125 static void (*gMakeProc[])(SkPath*) = { in test_emptydrawing()
[all …]
/external/skia/src/pathops/
DSkOpEdgeBuilder.cpp20 void SkOpEdgeBuilder::addOperand(const SkPath& path) { in addOperand()
21 SkASSERT(fPathVerbs.count() > 0 && fPathVerbs.end()[-1] == SkPath::kDone_Verb); in addOperand()
53 *fPathVerbs.append() = SkPath::kLine_Verb; in closeContour()
58 *fPathVerbs.append() = SkPath::kClose_Verb; in closeContour()
76 SkPath::RawIter iter(*fPath); in preFetch()
80 SkPath::Verb verb; in preFetch()
85 case SkPath::kMove_Verb: in preFetch()
95 case SkPath::kLine_Verb: in preFetch()
99 if (lastVerb != SkPath::kLine_Verb && lastVerb != SkPath::kMove_Verb) { in preFetch()
105 case SkPath::kQuad_Verb: in preFetch()
[all …]
DSkOpBuilder.cpp14 static bool one_contour(const SkPath& path) { in one_contour()
21 if (verbs[index] == SkPath::kMove_Verb) { in one_contour()
28 void FixWinding(SkPath* path) { in FixWinding()
29 SkPath::FillType fillType = path->getFillType(); in FixWinding()
30 if (fillType == SkPath::kInverseEvenOdd_FillType) { in FixWinding()
31 fillType = SkPath::kInverseWinding_FillType; in FixWinding()
32 } else if (fillType == SkPath::kEvenOdd_FillType) { in FixWinding()
33 fillType = SkPath::kWinding_FillType; in FixWinding()
38 SkPath temp; in FixWinding()
74 SkPath empty; in FixWinding()
[all …]
/external/skia/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/skia/src/core/
DSkEdgeBuilder.cpp110 SkPath::Verb verb; in addClipper()
112 while ((verb = clipper->next(pts)) != SkPath::kDone_Verb) { in addClipper()
114 case SkPath::kLine_Verb: in addClipper()
117 case SkPath::kQuad_Verb: in addClipper()
120 case SkPath::kCubic_Verb: in addClipper()
143 int SkEdgeBuilder::buildPoly(const SkPath& path, const SkIRect* iclip, int shiftUp, in buildPoly()
145 SkPath::Iter iter(path, true); in buildPoly()
147 SkPath::Verb verb; in buildPoly()
170 while ((verb = iter.next(pts, false)) != SkPath::kDone_Verb) { in buildPoly()
172 case SkPath::kMove_Verb: in buildPoly()
[all …]
DSkPathRef.cpp327 case SkPath::kMove_Verb: in growForRepeatedVerb()
331 case SkPath::kLine_Verb: in growForRepeatedVerb()
332 fSegmentMask |= SkPath::kLine_SegmentMask; in growForRepeatedVerb()
335 case SkPath::kQuad_Verb: in growForRepeatedVerb()
336 fSegmentMask |= SkPath::kQuad_SegmentMask; in growForRepeatedVerb()
339 case SkPath::kConic_Verb: in growForRepeatedVerb()
340 fSegmentMask |= SkPath::kConic_SegmentMask; in growForRepeatedVerb()
343 case SkPath::kCubic_Verb: in growForRepeatedVerb()
344 fSegmentMask |= SkPath::kCubic_SegmentMask; in growForRepeatedVerb()
347 case SkPath::kClose_Verb: in growForRepeatedVerb()
[all …]
/external/skia/src/effects/
DSkArcToPathEffect.cpp16 bool SkArcToPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath()
18 SkPath::Iter iter(src, false); in filterPath()
19 SkPath::Verb verb; in filterPath()
23 SkPath::Verb prevVerb = SkPath::kMove_Verb; in filterPath()
27 case SkPath::kMove_Verb: in filterPath()
28 if (SkPath::kLine_Verb == prevVerb) { in filterPath()
33 case SkPath::kLine_Verb: in filterPath()
34 if (prevVerb == SkPath::kLine_Verb) { in filterPath()
39 case SkPath::kQuad_Verb: in filterPath()
43 case SkPath::kConic_Verb: in filterPath()
[all …]
DSk1DPathEffect.cpp16 bool Sk1DPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath()
35 SkPath1DPathEffect::SkPath1DPathEffect(const SkPath& path, SkScalar advance, in SkPath1DPathEffect()
67 bool SkPath1DPathEffect::filterPath(SkPath* dst, const SkPath& src, in filterPath()
107 static void morphpath(SkPath* dst, const SkPath& src, SkPathMeasure& meas, in morphpath()
109 SkPath::Iter iter(src, false); in morphpath()
111 SkPath::Verb verb; in morphpath()
113 while ((verb = iter.next(srcP)) != SkPath::kDone_Verb) { in morphpath()
115 case SkPath::kMove_Verb: in morphpath()
120 case SkPath::kLine_Verb: in morphpath()
125 case SkPath::kQuad_Verb: in morphpath()
[all …]
/external/skia/gm/
Dpathcontourstart.cpp53 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) { in onDraw()
54 SkPath path; in onDraw()
59 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) { in onDraw()
60 SkPath path; in onDraw()
65 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) { in onDraw()
70 SkPath path; in onDraw()
75 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) { in onDraw()
79 SkPath path; in onDraw()
84 drawDirs(canvas, [](const SkRect& rect, SkPath::Direction dir, unsigned startIndex) { in onDraw()
88 SkPath path; in onDraw()
[all …]
/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);
80 void add(const SkPath& path, SkPathOp _operator);
88 bool resolve(SkPath* result);
91 SkTArray<SkPath> fPathRefs;
/external/skia/include/effects/
DSk2DPathEffect.h17 bool filterPath(SkPath*, const SkPath&, SkStrokeRec*, const SkRect*) const override;
26 virtual void begin(const SkIRect& uvBounds, SkPath* dst) const;
27 virtual void next(const SkPoint& loc, int u, int v, SkPath* dst) const;
28 virtual void end(SkPath* dst) const;
34 virtual void nextSpan(int u, int v, int ucount, SkPath* dst) const;
62 virtual bool filterPath(SkPath* dst, const SkPath& src,
73 void nextSpan(int u, int v, int ucount, SkPath*) const override;
87 static SkPathEffect* Create(const SkMatrix& matrix, const SkPath& path) { in Create()
95 SkPath2DPathEffect(const SkMatrix&, const SkPath&);
98 void next(const SkPoint&, int u, int v, SkPath*) const override;
[all …]

12345678910>>...18