/third_party/flutter/skia/gm/ |
D | mandoline.cpp | 31 fPath.setFillType(SkPath::kEvenOdd_FillType); in MandolineSlicer() 32 fPath.setIsVolatile(true); in MandolineSlicer() 37 fPath.reset(); in reset() 43 fPath.moveTo(fAnchorPt); in sliceLine() 44 fPath.lineTo(fLastPt); in sliceLine() 45 fPath.lineTo(pt); in sliceLine() 46 fPath.close(); in sliceLine() 61 fPath.moveTo(fAnchorPt); in sliceQuadratic() 62 fPath.lineTo(fLastPt); in sliceQuadratic() 63 fPath.quadTo(p1, p2); in sliceQuadratic() [all …]
|
D | cubicpaths.cpp | 66 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 150)); in onDraw() 68 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 100)); in onDraw() 70 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 30, 150)); in onDraw() 72 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 10, 150)); in onDraw() 98 fPath.moveTo(69.7030518991886f, 0); in onOnceBeforeDraw() 99 fPath.cubicTo( 69.7030518991886f, 21.831149999999997f, in onOnceBeforeDraw() 101 fPath.cubicTo( 11.608591683531916f, 87.33115f, -0.010765133872116195f, 109.16448333333332f, in onOnceBeforeDraw() 103 fPath.close(); in onOnceBeforeDraw() 104 fFlipped = fPath; in onOnceBeforeDraw() 114 SkPath fPath; member in ClippedCubic2GM [all …]
|
D | filltypes.cpp | 21 SkPath fPath; member in skiagm::FillTypeGM 28 if (fPath.isEmpty()) { in makePath() 30 fPath.addCircle(SkIntToScalar(50), SkIntToScalar(50), radius); in makePath() 31 fPath.addCircle(SkIntToScalar(100), SkIntToScalar(100), radius); in makePath() 53 fPath.setFillType(ft); in showPath() 57 canvas->drawPath(fPath, paint); in showPath()
|
/third_party/skia/gm/ |
D | mandoline.cpp | 31 fPath.setFillType(SkPathFillType::kEvenOdd); in MandolineSlicer() 32 fPath.setIsVolatile(true); in MandolineSlicer() 37 fPath.reset(); in reset() 43 fPath.moveTo(fAnchorPt); in sliceLine() 44 fPath.lineTo(fLastPt); in sliceLine() 45 fPath.lineTo(pt); in sliceLine() 46 fPath.close(); in sliceLine() 61 fPath.moveTo(fAnchorPt); in sliceQuadratic() 62 fPath.lineTo(fLastPt); in sliceQuadratic() 63 fPath.quadTo(p1, p2); in sliceQuadratic() [all …]
|
D | cubicpaths.cpp | 66 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 150)); in onDraw() 68 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 100)); in onDraw() 70 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 30, 150)); in onDraw() 72 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 10, 150)); in onDraw() 98 fPath.moveTo(69.7030518991886f, 0); in onOnceBeforeDraw() 99 fPath.cubicTo( 69.7030518991886f, 21.831149999999997f, in onOnceBeforeDraw() 101 fPath.cubicTo( 11.608591683531916f, 87.33115f, -0.010765133872116195f, 109.16448333333332f, in onOnceBeforeDraw() 103 fPath.close(); in onOnceBeforeDraw() 104 fFlipped = fPath; in onOnceBeforeDraw() 114 SkPath fPath; member in ClippedCubic2GM [all …]
|
/third_party/skia/samplecode/ |
D | SamplePathTessellators.cpp | 61 , fPath(path) in SamplePathTessellatorOp() 134 int patchPreallocCount = fTessellator->patchPreallocCount(fPath.countVerbs()); in onPrepare() 136 patchPreallocCount += fPath.countVerbs() - 1; in onPrepare() 143 for (PathMiddleOutFanIter it(fPath); !it.done();) { in onPrepare() 154 {pathMatrix, fPath, kCyan}); in onPrepare() 166 const SkPath fPath; member in skgpu::__anon372d720f0111::SamplePathTessellatorOp 185 fPath.moveTo(1, 0); in SamplePathTessellators() 189 fPath.lineTo(std::cos(theta), std::sin(theta)); in SamplePathTessellators() 191 fPath.transform(SkMatrix::Scale(200, 200)); in SamplePathTessellators() 192 fPath.transform(SkMatrix::Translate(300, 300)); in SamplePathTessellators() [all …]
|
D | SampleStrokePath.cpp | 99 SkPath fPath; member in StrokePathView 111 SkParsePath::FromSVGString(str, &fPath); in onOnceBeforeDraw() 113 fPath.addCircle(0, 0, SkIntToScalar(50), SkPathDirection::kCW); in onOnceBeforeDraw() 114 fPath.addCircle(0, SkIntToScalar(-50), SkIntToScalar(30), SkPathDirection::kCW); in onOnceBeforeDraw() 117 scale_to_width(&fPath, fWidth); in onOnceBeforeDraw() 118 const SkRect& bounds = fPath.getBounds(); in onOnceBeforeDraw() 119 fPath.offset(-bounds.fLeft, -bounds.fTop); in onOnceBeforeDraw() 135 canvas->drawPath(fPath, *paint); in drawSet() 189 fPath = p; in onDrawContent() 190 fPath.offset(100, 0); in onDrawContent() [all …]
|
D | SampleStrokeVerb.cpp | 64 SkPath fPath; member in StrokeVerbView 77 canvas->drawPath(fPath, outlinePaint); in onDrawContent() 108 fPath.reset(); in updatePath() 109 fPath.moveTo(fPoints[0]); in updatePath() 112 fPath.cubicTo(fPoints[1], fPoints[2], fPoints[3]); in updatePath() 115 fPath.quadTo(fPoints[1], fPoints[3]); in updatePath() 118 fPath.conicTo(fPoints[1], fPoints[3], fConicWeight); in updatePath() 121 fPath.lineTo(fPoints[1]); in updatePath() 122 fPath.lineTo(fPoints[3]); in updatePath() 123 fPath.close(); in updatePath()
|
D | SamplePathEffects.cpp | 71 SkPath fPath; member in PathEffectView 87 fPath.moveTo(x, y); in onOnceBeforeDraw() 92 fPath.moveTo(x, tmpY); in onOnceBeforeDraw() 94 fPath.lineTo(x, tmpY); in onOnceBeforeDraw() 102 fPath.addRoundRect(oval, SkIntToScalar(8), SkIntToScalar(8)); in onOnceBeforeDraw() 119 canvas->drawPath(fPath, paint); in onDrawContent() 125 canvas->drawPath(fPath, paint); in onDrawContent() 131 canvas->drawPath(fPath, paint); in onDrawContent()
|
/third_party/skia/modules/sksg/src/ |
D | SkSGPath.cpp | 16 Path::Path(const SkPath& path) : fPath(path) {} in Path() 19 canvas->clipPath(fPath, SkClipOp::kIntersect, antiAlias); in onClip() 23 canvas->drawPath(fPath, paint); in onDraw() 27 return fPath.contains(p.x(), p.y()); in onContains() 33 const auto ft = fPath.getFillType(); in onRevalidate() 36 ? fPath.computeTightBounds() in onRevalidate() 42 return fPath; in onAsPath()
|
/third_party/flutter/skia/modules/sksg/src/ |
D | SkSGPath.cpp | 16 Path::Path(const SkPath& path) : fPath(path) {} in Path() 19 canvas->clipPath(fPath, SkClipOp::kIntersect, antiAlias); in onClip() 23 canvas->drawPath(fPath, paint); in onDraw() 27 return fPath.contains(p.x(), p.y()); in onContains() 33 const auto ft = fPath.getFillType(); in onRevalidate() 36 ? fPath.computeTightBounds() in onRevalidate() 42 return fPath; in onAsPath()
|
/third_party/flutter/skia/bench/ |
D | CoverageBench.cpp | 21 SkPath fPath; member in DrawPathBench 32 fPath.moveTo(0, 0); in DrawPathBench() 33 fPath.quadTo(500, 0, 500, 500); in DrawPathBench() 34 fPath.quadTo(250, 0, 0, 500); in DrawPathBench() 44 fRC.setRect(fPath.getBounds().round()); in DrawPathBench() 59 fDraw.drawPathCoverage(fPath, fPaint); in onDraw() 63 fDraw.drawPath(fPath, fPaint); in onDraw()
|
D | PathIterBench.cpp | 30 SkPath fPath; member in PathIterBench 44 fPath.moveTo(pts[0]); in PathIterBench() 47 fPath.lineTo(pts[1]); in PathIterBench() 50 fPath.quadTo(pts[1], pts[2]); in PathIterBench() 53 fPath.cubicTo(pts[1], pts[2], pts[3]); in PathIterBench() 71 SkPath::RawIter iter(fPath); in onDraw() 79 SkPath::Iter iter(fPath, false); in onDraw()
|
/third_party/skia/bench/ |
D | CoverageBench.cpp | 22 SkPath fPath; member in DrawPathBench 34 fPath.moveTo(0, 0); in DrawPathBench() 35 fPath.quadTo(500, 0, 500, 500); in DrawPathBench() 36 fPath.quadTo(250, 0, 0, 500); in DrawPathBench() 45 fRC.setRect(fPath.getBounds().round()); in DrawPathBench() 60 fDraw.drawPathCoverage(fPath, fPaint); in onDraw() 64 fDraw.drawPath(fPath, fPaint); in onDraw()
|
D | PathIterBench.cpp | 40 SkPath fPath; member in PathIterBench 56 fPath.moveTo(pts[0]); in PathIterBench() 59 fPath.lineTo(pts[1]); in PathIterBench() 62 fPath.quadTo(pts[1], pts[2]); in PathIterBench() 65 fPath.cubicTo(pts[1], pts[2], pts[3]); in PathIterBench() 92 SkPath::Iter iter(fPath, true); in onDraw() 102 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in onDraw() 109 SkPathEdgeIter iter(fPath); in onDraw()
|
/third_party/skia/src/gpu/tessellate/ |
D | Tessellation.cpp | 30 fPath.setIsVolatile(true); in PathChopper() 33 SkPath path() const { return fPath; } in path() 35 void moveTo(SkPoint p) { fPath.moveTo(p); } in moveTo() 36 void lineTo(SkPoint p1) { fPath.lineTo(p1); } in lineTo() 37 void close() { fPath.close(); } in close() 52 fPath.quadTo(p[1], p[2]); in quadTo() 71 fPath.conicTo(p[1], p[2], w); in conicTo() 87 fPath.cubicTo(p[1], p[2], p[3]); in cubicTo() 93 SkPath fPath; member in skgpu::__anon629b777d0111::PathChopper
|
/third_party/flutter/skia/samplecode/ |
D | SampleStrokePath.cpp | 101 SkPath fPath; member in StrokePathView 113 SkParsePath::FromSVGString(str, &fPath); in onOnceBeforeDraw() 115 fPath.addCircle(0, 0, SkIntToScalar(50), SkPath::kCW_Direction); in onOnceBeforeDraw() 116 fPath.addCircle(0, SkIntToScalar(-50), SkIntToScalar(30), SkPath::kCW_Direction); in onOnceBeforeDraw() 119 scale_to_width(&fPath, fWidth); in onOnceBeforeDraw() 120 const SkRect& bounds = fPath.getBounds(); in onOnceBeforeDraw() 121 fPath.offset(-bounds.fLeft, -bounds.fTop); in onOnceBeforeDraw() 137 canvas->drawPath(fPath, *paint); in drawSet() 191 fPath = p; in onDrawContent() 192 fPath.offset(100, 0); in onDrawContent() [all …]
|
D | SamplePathEffects.cpp | 71 SkPath fPath; member in PathEffectView 87 fPath.moveTo(x, y); in onOnceBeforeDraw() 92 fPath.moveTo(x, tmpY); in onOnceBeforeDraw() 94 fPath.lineTo(x, tmpY); in onOnceBeforeDraw() 103 fPath.addRoundRect(oval, SkIntToScalar(8), SkIntToScalar(8)); in onOnceBeforeDraw() 120 canvas->drawPath(fPath, paint); in onDrawContent() 126 canvas->drawPath(fPath, paint); in onDrawContent() 132 canvas->drawPath(fPath, paint); in onDrawContent()
|
D | SampleSVGFile.cpp | 25 : fPath(path), fLabel(SkStringPrintf("[%s]", SkOSPath::Basename(path.c_str()).c_str())) {} in SVGFileView() 30 SkFILEStream svgStream(fPath.c_str()); in onOnceBeforeDraw() 32 SkDebugf("file not found: \"path\"\n", fPath.c_str()); in onOnceBeforeDraw() 38 SkDebugf("XML parsing failed: \"path\"\n", fPath.c_str()); in onOnceBeforeDraw() 66 SkString fPath; member in __anon9a5f54e20111::SVGFileView
|
/third_party/flutter/skia/src/utils/win/ |
D | SkDWriteGeometrySink.cpp | 19 SkDWriteGeometrySink::SkDWriteGeometrySink(SkPath* path) : fRefCount(1), fPath(path) { } in SkDWriteGeometrySink() 52 fPath->setFillType(SkPath::kEvenOdd_FillType); in SK_STDMETHODIMP_() 55 fPath->setFillType(SkPath::kWinding_FillType); in SK_STDMETHODIMP_() 70 fPath->moveTo(startPoint.x, startPoint.y); in SK_STDMETHODIMP_() 78 fPath->lineTo(points->x, points->y); in SK_STDMETHODIMP_() 116 fPath->getLastPt(&lastPt); in SK_STDMETHODIMP_() 126 fPath->quadTo(quadratic[1].x, quadratic[1].y, in SK_STDMETHODIMP_() 129 fPath->cubicTo(beziers->point1.x, beziers->point1.y, in SK_STDMETHODIMP_() 138 fPath->close(); in SK_STDMETHODIMP_()
|
/third_party/skia/modules/svg/src/ |
D | SkSVGPoly.cpp | 23 fPath = SkPath::Polygon( in parseAndSetAttribute() 35 fPath.setFillType(fillType); in onDraw() 36 canvas->drawPath(fPath, paint); in onDraw() 40 SkPath path = fPath; in onAsPath() 50 return fPath.getBounds(); in onObjectBoundingBox()
|
/third_party/skia/experimental/graphite/src/geom/ |
D | Shape.cpp | 35 case Type::kPath: return fPath.conservativelyContainsRect(rect.asSkRect()); in conservativeContains() 46 case Type::kPath: return fPath.contains(point.x(), point.y()); in conservativeContains() 57 case Type::kPath: return SkPathPriv::IsClosedSingleContour(fPath); in closed() 65 return (simpleFill || fPath.isLastContourClosed()) && fPath.isConvex(); in convex() 78 case Type::kPath: return fPath.getBounds(); in bounds() 85 return fPath; in asPath()
|
D | Shape.h | 65 SkASSERT(fType != Type::kPath || fInverted == fPath.isInverseFillType()); in inverted() 70 if (fType == Type::kPath && inverted != fPath.isInverseFillType()) { in setInverted() 71 fPath.toggleInverseFillType(); in setInverted() 78 return fPath.getFillType(); // already incorporates invertedness in fillType() 109 const SkPath& path() const { SkASSERT(this->isPath()); return fPath; } in path() 141 fPath = path; in setPath() 145 new (&fPath) SkPath(path); in setPath() 158 fPath.~SkPath(); in setType() 166 SkPath fPath; member
|
/third_party/skia/modules/sksg/include/ |
D | SkSGPath.h | 28 SG_ATTRIBUTE(Path, SkPath, fPath) in SG_ATTRIBUTE() argument 34 return fPath.getFillType(); in SG_ATTRIBUTE() 38 if (fillType != fPath.getFillType()) { in setFillType() 39 fPath.setFillType(fillType); in setFillType() 55 SkPath fPath; variable
|
/third_party/flutter/skia/experimental/svg/model/ |
D | SkSVGPoly.cpp | 17 fPath.reset(); in setPoints() 18 fPath.addPoly(pts.value().begin(), in setPoints() 38 fPath.setFillType(fillType); in onDraw() 39 canvas->drawPath(fPath, paint); in onDraw() 43 SkPath path = fPath; in onAsPath()
|