Home
last modified time | relevance | path

Searched refs:fillType (Results 1 - 25 of 26) sorted by relevance

12

/third_party/skia/src/pathops/
H A DSkOpBuilder.cpp39 SkPathFillType fillType = path->getFillType(); in FixWinding() local
40 if (fillType == SkPathFillType::kInverseEvenOdd) { in FixWinding()
41 fillType = SkPathFillType::kInverseWinding; in FixWinding()
42 } else if (fillType == SkPathFillType::kEvenOdd) { in FixWinding()
43 fillType = SkPathFillType::kWinding; in FixWinding()
51 path->setFillType(fillType); in FixWinding()
90 path->setFillType(fillType); in FixWinding()
107 path->setFillType(fillType); in FixWinding()
H A DSkPathOpsAsWinding.cpp324 SkPath reverseMarkedContours(vector<Contour>& contours, SkPathFillType fillType) { in reverseMarkedContours() argument
330 result.setFillType(fillType); in reverseMarkedContours()
369 static bool set_result_path(SkPath* result, const SkPath& path, SkPathFillType fillType) { in set_result_path() argument
371 result->setFillType(fillType); in set_result_path()
379 SkPathFillType fillType = path.getFillType(); in AsWinding() local
380 if (fillType == SkPathFillType::kWinding in AsWinding()
381 || fillType == SkPathFillType::kInverseWinding ) { in AsWinding()
382 return set_result_path(result, path, fillType); in AsWinding()
384 fillType = path.isInverseFillType() ? SkPathFillType::kInverseWinding : in AsWinding()
387 return set_result_path(result, path, fillType); in AsWinding()
[all...]
H A DSkPathOpsSimplify.cpp143 SkPathFillType fillType = path.isInverseFillType() ? SkPathFillType::kInverseEvenOdd in SimplifyDebug() local
149 result->setFillType(fillType); in SimplifyDebug()
179 result->setFillType(fillType); in SimplifyDebug()
204 result->setFillType(fillType); in SimplifyDebug()
H A DSkPathOpsOp.cpp251 SkPathFillType fillType = inverseFill ? SkPathFillType::kInverseEvenOdd : in OpDebug() local
256 result->setFillType(fillType); in OpDebug()
323 result->setFillType(fillType); in OpDebug()
350 result->setFillType(fillType); in OpDebug()
/third_party/skia/modules/svg/src/
H A DSkSVGShape.cpp14 const auto fillType = ctx.presentationContext().fInherited.fFillRule->asFillType(); in onRender() local
21 this->onDraw(ctx.canvas(), ctx.lengthContext(), *fillPaint, fillType); in onRender()
25 this->onDraw(ctx.canvas(), ctx.lengthContext(), *strokePaint, fillType); in onRender()
H A DSkSVGPoly.cpp33 SkPathFillType fillType) const { in onDraw()
34 // the passed fillType follows inheritance rules and needs to be applied at draw time. in onDraw()
35 fPath.setFillType(fillType); in onDraw()
H A DSkSVGPath.cpp28 SkPathFillType fillType) const { in onDraw()
29 // the passed fillType follows inheritance rules and needs to be applied at draw time. in onDraw()
31 path.setFillType(fillType); in onDraw()
/third_party/skia/docs/examples/
H A DPath_FillType_b.cpp25 for (auto fillType : { SkPathFillType::kWinding, SkPathFillType::kEvenOdd, in REG_FIDDLE()
29 path.setFillType(fillType); in REG_FIDDLE()
32 canvas->drawString(fillType & 1 ? "even-odd" : "winding", 64, 170, textPaint); in REG_FIDDLE()
H A DPath_FillType_a.cpp17 for (auto fillType : { SkPathFillType::kWinding, SkPathFillType::kEvenOdd, in REG_FIDDLE()
22 path.setFillType(fillType); in REG_FIDDLE()
/third_party/skia/modules/sksg/include/
H A DSkSGPath.h37 void setFillType(SkPathFillType fillType) { in setFillType() argument
38 if (fillType != fPath.getFillType()) { in setFillType()
39 fPath.setFillType(fillType); in setFillType()
/third_party/skia/platform_tools/android/apps/AndroidKit/src/main/java/org/skia/androidkit/
H A DPathBuilder.java52 public void setFillType(FillType fillType) { in setFillType() argument
53 nSetFillType(mNativeInstance, fillType.nativeInt); in setFillType()
75 private static native void nSetFillType(long mNativeInstance, int fillType); in nSetFillType() argument
/third_party/skia/gm/
H A Dlargeclippedpath.cpp16 static void draw_clipped_flower(SkCanvas* canvas, SkPathFillType fillType) { in draw_clipped_flower() argument
30 flower.setFillType(fillType); in draw_clipped_flower()
/third_party/skia/tests/
H A DPathBuilderTest.cpp46 for (auto fillType : { SkPathFillType::kWinding, in DEF_TEST()
50 SkPathBuilder b(fillType); in DEF_TEST()
52 REPORTER_ASSERT(reporter, b.fillType() == fillType); in DEF_TEST()
55 REPORTER_ASSERT(reporter, path.getFillType() == fillType); in DEF_TEST()
H A DPathOpsExtendedTest.cpp363 SkPathFillType fillType = useXor ? SkPathFillType::kEvenOdd : SkPathFillType::kWinding;
364 path.setFillType(fillType);
380 if (fillType == SkPathFillType::kEvenOdd) {
445 fprintf(PathOpsDebug::gOut, " \"fillType%s\": \"k%s_FillType\"%s", fillTypeName, in json_path_out()
H A DTriangulatingPathRendererTests.cpp840 static EdgeMap simplify(const EdgeMap& edges, SkPathFillType fillType) { in simplify() argument
846 if (fillType == SkPathFillType::kEvenOdd) { in simplify()
860 for (auto fillType : {SkPathFillType::kWinding}) { in verify_simple_inner_polygons()
861 path.setFillType(fillType); in verify_simple_inner_polygons()
/third_party/skia/fuzz/
H A DFuzzCommon.cpp35 uint8_t fillType; in FuzzNicePath() local
36 fuzz->nextRange(&fillType, 0, (uint8_t)SkPathFillType::kInverseEvenOdd); in FuzzNicePath()
37 path->setFillType((SkPathFillType)fillType); in FuzzNicePath()
/third_party/skia/src/core/
H A DSkPath_serial.cpp171 SkPathFillType fillType = extract_filltype(packed); in readAsRRect() local
194 this->setFillType(fillType); in readAsRRect()
H A DSkScan_Path.cpp100 static void walk_edges(SkEdge* prevHead, SkPathFillType fillType, in walk_edges() argument
106 int windingMask = SkPathFillType_IsEvenOdd(fillType) ? 1 : -1; in walk_edges()
H A DSkScan_AAAPath.cpp1555 SkPathFillType fillType,
1579 int windingMask = SkPathFillType_IsEvenOdd(fillType) ? 1 : -1;
1580 bool isInverse = SkPathFillType_IsInverse(fillType);
/third_party/skia/experimental/graphite/src/geom/
H A DShape.cpp88 SkPathBuilder builder(this->fillType()); in asPath()
H A DShape.h76 SkPathFillType fillType() const { in fillType() function in skgpu::Shape
/third_party/skia/include/core/
H A DSkPath.h86 SkPathFillType fillType = SkPathFillType::kWinding, in Polygon()
88 return Polygon(list.begin(), SkToInt(list.size()), isClosed, fillType, isVolatile); in Polygon()
H A DSkPathBuilder.h27 SkPathFillType fillType() const { return fFillType; } in fillType() function in SkPathBuilder
/third_party/skia/include/private/
H A DGrTypesPriv.h206 inline GrFillRule GrFillRuleForPathFillType(SkPathFillType fillType) {
207 switch (fillType) {
/third_party/skia/src/gpu/geometry/
H A DGrTriangulator.cpp595 static inline bool apply_fill_type(SkPathFillType fillType, int winding) { in apply_fill_type() argument
596 switch (fillType) { in apply_fill_type()
615 static inline bool apply_fill_type(SkPathFillType fillType, Poly* poly) { in apply_fill_type() argument
616 return poly && apply_fill_type(fillType, poly->fWinding); in apply_fill_type()

Completed in 21 milliseconds

12