• Home
  • Raw
  • Download

Lines Matching refs:SkPath

12 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()
64 REPORTER_ASSERT(reporter, result.getFillType() == SkPath::kWinding_FillType); in DEF_TEST()
69 test.setFillType(SkPath::kWinding_FillType); in DEF_TEST()
74 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
80 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
83 test.setFillType(SkPath::kWinding_FillType); in DEF_TEST()
87 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
90 test.setFillType(SkPath::kWinding_FillType); in DEF_TEST()
96 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
99 test.setFillType(SkPath::kWinding_FillType); in DEF_TEST()
105 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
108 test.setFillType(SkPath::kWinding_FillType); in DEF_TEST()
111 SkPath copy = test; in DEF_TEST()
112 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
122 for (auto dirA : {SkPath::kCW_Direction, SkPath::kCCW_Direction}) { in DEF_TEST()
123 for (auto dirB : {SkPath::kCW_Direction, SkPath::kCCW_Direction}) { in DEF_TEST()
125 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
133 SkPath original = test; in DEF_TEST()
135 REPORTER_ASSERT(reporter, result.getFillType() == SkPath::kWinding_FillType); in DEF_TEST()
143 test.addPoly(SkPath::kCW_Direction == dirA ? revBccw : revBcw, true); in DEF_TEST()
151 REPORTER_ASSERT(reporter, original.getFillType() == SkPath::kWinding_FillType); in DEF_TEST()
159 for (auto dirA : {SkPath::kCW_Direction, SkPath::kCCW_Direction}) { in DEF_TEST()
160 for (auto dirB : {SkPath::kCW_Direction, SkPath::kCCW_Direction}) { in DEF_TEST()
161 for (auto curveA : { SkPath::kLine_Verb, SkPath::kQuad_Verb, in DEF_TEST()
162 SkPath::kConic_Verb, SkPath::kCubic_Verb } ) { in DEF_TEST()
163 SkPath pathA = build_squircle(curveA, rectA, dirA); in DEF_TEST()
164 for (auto curveB : { SkPath::kLine_Verb, SkPath::kQuad_Verb, in DEF_TEST()
165 SkPath::kConic_Verb, SkPath::kCubic_Verb } ) { in DEF_TEST()
166 test = aFirst ? pathA : SkPath(); in DEF_TEST()
171 test.setFillType(SkPath::kEvenOdd_FillType); in DEF_TEST()
173 REPORTER_ASSERT(reporter, result.getFillType() == SkPath::kWinding_FillType); in DEF_TEST()