Home
last modified time | relevance | path

Searched refs:fPath (Results 1 – 25 of 134) sorted by relevance

123456

/third_party/skia/samplecode/
DSamplePathTessellators.cpp61 , 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::__anon93a851ab0111::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 …]
DSampleStrokePath.cpp99 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 …]
DSampleStrokeVerb.cpp64 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()
DSamplePathEffects.cpp71 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()
DSamplePath.cpp78 SkPath fPath[6]; member in PathView
105 fPath[0].moveTo(40, 70); in init()
106 fPath[0].lineTo(70, 70 + SK_ScalarHalf); in init()
107 fPath[0].lineTo(110, 70); in init()
109 fPath[1].moveTo(40, 70); in init()
110 fPath[1].lineTo(70, 70 - SK_ScalarHalf); in init()
111 fPath[1].lineTo(110, 70); in init()
113 fPath[2].moveTo(V, V); in init()
114 fPath[2].lineTo(50, V); in init()
115 fPath[2].lineTo(50, 50); in init()
[all …]
/third_party/skia/gm/
Dmandoline.cpp31 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 …]
Dcubicpaths.cpp66 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 …]
Dperspshaders.cpp82 fPath.moveTo(0, 0); in onOnceBeforeDraw()
83 fPath.lineTo(0, SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
84 fPath.lineTo(kCellSize/2.0f, kCellSize/2.0f); in onOnceBeforeDraw()
85 fPath.lineTo(SkIntToScalar(kCellSize), SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
86 fPath.lineTo(SkIntToScalar(kCellSize), 0); in onOnceBeforeDraw()
87 fPath.close(); in onOnceBeforeDraw()
129 canvas->drawPath(fPath, pathPaint); in drawRow()
141 canvas->drawPath(fPath, gradPaint2); in drawRow()
168 SkPath fPath; member in skiagm::PerspShadersGM
/third_party/skia/modules/sksg/src/
DSkSGPath.cpp16 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()
DSkSGGeometryEffect.cpp36 canvas->clipPath(fPath, SkClipOp::kIntersect, antiAlias); in onClip()
40 canvas->drawPath(fPath, paint); in onDraw()
44 return fPath.contains(p.x(), p.y()); in onContains()
48 return fPath; in onAsPath()
56 fPath = this->onRevalidateEffect(fChild); in onRevalidate()
57 SkPathPriv::ShrinkToFit(&fPath); in onRevalidate()
59 return fPath.computeTightBounds(); in onRevalidate()
/third_party/skia/src/gpu/tessellate/
DTessellation.cpp30 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::__anon3461c0190111::PathChopper
/third_party/skia/bench/
DCoverageBench.cpp22 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()
DPathIterBench.cpp40 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()
DTessellateBench.cpp94 : fPath(p), fMatrix(m) { in PathTessellateBenchmark()
121 const SkPath fPath; member in skgpu::PathTessellateBenchmark
148 {gAlmostIdentity, fPath, SK_PMColor4fTRANSPARENT},
149 fPath.countVerbs(),
162 {gAlmostIdentity, fPath, SK_PMColor4fTRANSPARENT},
163 fPath.countVerbs(),
182 benchmark_wangs_formula_cubic_log2(fMatrix, fPath);
187 benchmark_wangs_formula_cubic_log2(fMatrix, fPath);
192 benchmark_wangs_formula_cubic_log2(fMatrix, fPath);
224 benchmark_wangs_formula_conic(fMatrix, fPath); in DEF_PATH_TESS_BENCH()
[all …]
DClipMaskBench.cpp22 SkPath fPath; member in RasterTileBench
30 fPath.moveTo(0, 0); in RasterTileBench()
31 fPath.cubicTo(20, 10, 10, 15, 30, 5); in RasterTileBench()
45 fSurf->getCanvas()->drawPath(fPath, paint); in onDraw()
/third_party/skia/experimental/graphite/src/geom/
DShape.h65 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
DShape.cpp35 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()
/third_party/skia/src/gpu/geometry/
DGrShape.cpp28 this->setPath(shape.fPath); in operator =()
47 uint32_t key = this->isPath() ? static_cast<uint32_t>(fPath.getFillType()) in stateKey()
65 if (fPath.isEmpty()) { in simplifyPath()
68 } else if (fPath.isLine(pts)) { in simplifyPath()
71 } else if (SkPathPriv::IsRRect(fPath, &rrect, &dir, &start)) { in simplifyPath()
74 } else if (SkPathPriv::IsOval(fPath, &rect, &dir, &start)) { in simplifyPath()
78 } else if (SkPathPriv::IsSimpleRect(fPath, (flags & kSimpleFill_Flag), &rect, &dir, &start)) { in simplifyPath()
87 if (fPath.isRect(&rect, &closed) && (closed || (flags & kSimpleFill_Flag))) { in simplifyPath()
295 return fPath.conservativelyContainsRect(rect); in conservativeContains()
320 return fPath.contains(point.fX, point.fY); in conservativeContains()
[all …]
DGrShape.h99 return this->isPath() ? fPath.isInverseFillType() : SkToBool(fInverted); in inverted()
120 if (inverted != fPath.isInverseFillType()) { in setInverted()
121 fPath.toggleInverseFillType(); in setInverted()
139 SkPath& path() { SkASSERT(this->isPath()); return fPath; } in path()
140 const SkPath& path() const { SkASSERT(this->isPath()); return fPath; } in path()
177 fPath = path; in setPath()
181 new (&fPath) SkPath(path); in setPath()
237 fInverted = fPath.isInverseFillType(); in setType()
238 fPath.~SkPath(); in setType()
270 SkPath fPath; member
/third_party/skia/modules/svg/src/
DSkSVGPoly.cpp23 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/modules/sksg/include/
DSkSGPath.h28 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/skia/modules/skparagraph/src/
DDecorations.cpp52 fPath.offset(x, y); in paint()
53 painter->drawPath(fPath, fDecorStyle); in paint()
62 painter->drawPath(fPath, fDecorStyle); in paint()
64 painter->drawPath(fPath, fDecorStyle); in paint()
77 painter->drawPath(fPath, fDecorStyle); in paint()
87 painter->drawPath(fPath, fDecorStyle); in paint()
133 fPath = path.detach(); in calculateGaps()
215 fPath.reset(); in calculateWaves()
219 fPath.moveTo(0, 0); in calculateWaves()
221 fPath.rQuadTo(quarterWave, in calculateWaves()
[all …]
/third_party/skia/dm/
DDMSrcSink.cpp164 : fPath(path) in BRDSrc()
209 auto brd = create_brd(fPath); in draw()
211 return Result::Skip("Could not create brd for %s.", fPath.c_str()); in draw()
314 auto brd = create_brd(fPath); in size()
326 return SkOSPath::Basename(fPath.c_str()); in name()
328 return get_scaled_name(fPath, 1.0f / (float) fSampleSize); in name()
356 : fPath(path) in CodecSrc()
434 sk_sp<SkData> encoded(SkData::MakeFromFileName(fPath.c_str())); in draw()
436 return Result::Fatal("Couldn't read %s.", fPath.c_str()); in draw()
441 return Result::Fatal("Couldn't create codec for %s.", fPath.c_str()); in draw()
[all …]
/third_party/skia/src/utils/win/
DSkDWriteGeometrySink.cpp20 : fRefCount{1}, fPath{path}, fStarted{false}, fCurrent{0,0} {} in SkDWriteGeometrySink()
53 fPath->setFillType(SkPathFillType::kEvenOdd); in SK_STDMETHODIMP_()
56 fPath->setFillType(SkPathFillType::kWinding); in SK_STDMETHODIMP_()
82 fPath->lineTo(points->x, points->y); in SK_STDMETHODIMP_()
129 fPath->quadTo( quadraticP1.x, quadraticP1.y, in SK_STDMETHODIMP_()
132 fPath->cubicTo(beziers->point1.x, beziers->point1.y, in SK_STDMETHODIMP_()
142 fPath->close(); in SK_STDMETHODIMP_()
/third_party/skia/tests/
DSubsetPath.cpp13 : fPath(path) in SubsetPath()
67 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in SubsetContours()
95 result.setFillType(fPath.getFillType()); in getSubsetPath()
102 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in getSubsetPath()
151 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in SubsetVerbs()
176 result.setFillType(fPath.getFillType()); in getSubsetPath()
183 for (auto [verb, pts, w] : SkPathPriv::Iterate(fPath)) { in getSubsetPath()

123456