Home
last modified time | relevance | path

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

123456789

/external/skqp/gm/
Dmandoline.cpp25 fPath.setFillType(SkPath::kEvenOdd_FillType); in MandolineSlicer()
26 fPath.setIsVolatile(true); in MandolineSlicer()
31 fPath.reset(); in reset()
37 fPath.moveTo(fAnchorPt); in sliceLine()
38 fPath.lineTo(fLastPt); in sliceLine()
39 fPath.lineTo(pt); in sliceLine()
40 fPath.close(); in sliceLine()
55 fPath.moveTo(fAnchorPt); in sliceQuadratic()
56 fPath.lineTo(fLastPt); in sliceQuadratic()
57 fPath.quadTo(p1, p2); in sliceQuadratic()
[all …]
Dcubicpaths.cpp73 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 150)); in onDraw()
75 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 100)); in onDraw()
77 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 30, 150)); in onDraw()
79 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 10, 150)); in onDraw()
105 fPath.moveTo(69.7030518991886f, 0); in onOnceBeforeDraw()
106 fPath.cubicTo( 69.7030518991886f, 21.831149999999997f, in onOnceBeforeDraw()
108 fPath.cubicTo( 11.608591683531916f, 87.33115f, -0.010765133872116195f, 109.16448333333332f, in onOnceBeforeDraw()
110 fPath.close(); in onOnceBeforeDraw()
111 fFlipped = fPath; in onOnceBeforeDraw()
121 SkPath fPath; member in ClippedCubic2GM
[all …]
Dperspshaders.cpp71 fPath.moveTo(0, 0); in onOnceBeforeDraw()
72 fPath.lineTo(0, SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
73 fPath.lineTo(kCellSize/2.0f, kCellSize/2.0f); in onOnceBeforeDraw()
74 fPath.lineTo(SkIntToScalar(kCellSize), SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
75 fPath.lineTo(SkIntToScalar(kCellSize), 0); in onOnceBeforeDraw()
76 fPath.close(); in onOnceBeforeDraw()
120 canvas->drawPath(fPath, pathPaint); in drawRow()
132 canvas->drawPath(fPath, gradPaint2); in drawRow()
158 SkPath fPath; member in skiagm::PerspShadersGM
/external/skia/gm/
Dmandoline.cpp25 fPath.setFillType(SkPath::kEvenOdd_FillType); in MandolineSlicer()
26 fPath.setIsVolatile(true); in MandolineSlicer()
31 fPath.reset(); in reset()
37 fPath.moveTo(fAnchorPt); in sliceLine()
38 fPath.lineTo(fLastPt); in sliceLine()
39 fPath.lineTo(pt); in sliceLine()
40 fPath.close(); in sliceLine()
55 fPath.moveTo(fAnchorPt); in sliceQuadratic()
56 fPath.lineTo(fLastPt); in sliceQuadratic()
57 fPath.quadTo(p1, p2); in sliceQuadratic()
[all …]
Dcubicpaths.cpp73 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 150)); in onDraw()
75 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 80, 100)); in onDraw()
77 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 30, 150)); in onDraw()
79 drawOne(canvas, fPath, SkRect::MakeLTRB(0, 0, 10, 150)); in onDraw()
105 fPath.moveTo(69.7030518991886f, 0); in onOnceBeforeDraw()
106 fPath.cubicTo( 69.7030518991886f, 21.831149999999997f, in onOnceBeforeDraw()
108 fPath.cubicTo( 11.608591683531916f, 87.33115f, -0.010765133872116195f, 109.16448333333332f, in onOnceBeforeDraw()
110 fPath.close(); in onOnceBeforeDraw()
111 fFlipped = fPath; in onOnceBeforeDraw()
121 SkPath fPath; member in ClippedCubic2GM
[all …]
Dperspshaders.cpp71 fPath.moveTo(0, 0); in onOnceBeforeDraw()
72 fPath.lineTo(0, SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
73 fPath.lineTo(kCellSize/2.0f, kCellSize/2.0f); in onOnceBeforeDraw()
74 fPath.lineTo(SkIntToScalar(kCellSize), SkIntToScalar(kCellSize)); in onOnceBeforeDraw()
75 fPath.lineTo(SkIntToScalar(kCellSize), 0); in onOnceBeforeDraw()
76 fPath.close(); in onOnceBeforeDraw()
120 canvas->drawPath(fPath, pathPaint); in drawRow()
132 canvas->drawPath(fPath, gradPaint2); in drawRow()
158 SkPath fPath; member in skiagm::PerspShadersGM
/external/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()
/external/skia/bench/
DCoverageBench.cpp21 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()
DPathIterBench.cpp30 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()
/external/skqp/bench/
DCoverageBench.cpp21 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()
DPathIterBench.cpp30 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()
/external/skqp/samplecode/
DSampleStrokePath.cpp101 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()
143 canvas->drawPath(fPath, *paint); in drawSet()
197 fPath = p; in onDrawContent()
198 fPath.offset(100, 0); in onDrawContent()
[all …]
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()
103 fPath.addRoundRect(oval, SkIntToScalar(8), SkIntToScalar(8)); in onOnceBeforeDraw()
126 canvas->drawPath(fPath, paint); in onDrawContent()
132 canvas->drawPath(fPath, paint); in onDrawContent()
138 canvas->drawPath(fPath, paint); in onDrawContent()
DSampleAAGeometry.cpp772 SkPath fPath; member
777 fPath.reset(); in reset()
783 SkPath fPath; member
796 SkPath fPath; member in AAGeometryView
868 construct_path(fPath); in AAGeometryView()
886 construct_path(fPath); in constructPath()
894 if (fUndo && fUndo->fPath == fPath) { in savePath()
898 undo->fPath = fPath; in savePath()
907 fPath = fUndo->fPath; in undo()
919 match += fPath == undo->fPath; in validatePath()
[all …]
/external/skia/samplecode/
DSampleStrokePath.cpp101 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()
143 canvas->drawPath(fPath, *paint); in drawSet()
197 fPath = p; in onDrawContent()
198 fPath.offset(100, 0); in onDrawContent()
[all …]
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()
103 fPath.addRoundRect(oval, SkIntToScalar(8), SkIntToScalar(8)); in onOnceBeforeDraw()
126 canvas->drawPath(fPath, paint); in onDrawContent()
132 canvas->drawPath(fPath, paint); in onDrawContent()
138 canvas->drawPath(fPath, paint); in onDrawContent()
/external/skqp/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()
29 const auto ft = fPath.getFillType(); in onRevalidate()
32 ? fPath.computeTightBounds() in onRevalidate()
38 return fPath; in onAsPath()
/external/skqp/src/utils/win/
DSkDWriteGeometrySink.cpp18 SkDWriteGeometrySink::SkDWriteGeometrySink(SkPath* path) : fRefCount(1), fPath(path) { } in SkDWriteGeometrySink()
51 fPath->setFillType(SkPath::kEvenOdd_FillType); in SetFillMode()
54 fPath->setFillType(SkPath::kWinding_FillType); in SetFillMode()
69 fPath->moveTo(startPoint.x, startPoint.y); in BeginFigure()
77 fPath->lineTo(points->x, points->y); in AddLines()
115 fPath->getLastPt(&lastPt); in AddBeziers()
125 fPath->quadTo(quadratic[1].x, quadratic[1].y, in AddBeziers()
128 fPath->cubicTo(beziers->point1.x, beziers->point1.y, in AddBeziers()
137 fPath->close(); in EndFigure()
/external/skia/src/utils/win/
DSkDWriteGeometrySink.cpp18 SkDWriteGeometrySink::SkDWriteGeometrySink(SkPath* path) : fRefCount(1), fPath(path) { } in SkDWriteGeometrySink()
51 fPath->setFillType(SkPath::kEvenOdd_FillType); in SetFillMode()
54 fPath->setFillType(SkPath::kWinding_FillType); in SetFillMode()
69 fPath->moveTo(startPoint.x, startPoint.y); in BeginFigure()
77 fPath->lineTo(points->x, points->y); in AddLines()
115 fPath->getLastPt(&lastPt); in AddBeziers()
125 fPath->quadTo(quadratic[1].x, quadratic[1].y, in AddBeziers()
128 fPath->cubicTo(beziers->point1.x, beziers->point1.y, in AddBeziers()
137 fPath->close(); in EndFigure()
/external/skia/tests/
DGrCCPRTest.cpp37 CCPRClip(GrCoverageCountingPathRenderer* ccpr, const SkPath& path) : fCCPR(ccpr), fPath(path) {} in CCPRClip()
42 out->addCoverageFP(fCCPR->makeClipProcessor(rtc->priv().testingOnly_getOpListID(), fPath, in apply()
57 const SkPath fPath; member in CCPRClip
178 fPath.moveTo(0, 0); in run()
179 fPath.cubicTo(50, 50, 0, 50, 50, 0); in run()
189 SkPath fPath; member in CCPRTest
201 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
205 ccpr.drawPath(fPath); in onRun()
207 REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); in onRun()
209 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
[all …]
/external/skqp/tests/
DGrCCPRTest.cpp36 CCPRClip(GrCoverageCountingPathRenderer* ccpr, const SkPath& path) : fCCPR(ccpr), fPath(path) {} in CCPRClip()
41 out->addCoverageFP(fCCPR->makeClipProcessor(rtc->priv().testingOnly_getOpListID(), fPath, in apply()
56 const SkPath fPath; member in CCPRClip
177 fPath.moveTo(0, 0); in run()
178 fPath.cubicTo(50, 50, 0, 50, 50, 0); in run()
188 SkPath fPath; member in CCPRTest
200 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
204 ccpr.drawPath(fPath); in onRun()
206 REPORTER_ASSERT(reporter, !SkPathPriv::TestingOnly_unique(fPath)); in onRun()
208 REPORTER_ASSERT(reporter, SkPathPriv::TestingOnly_unique(fPath)); in onRun()
[all …]
/external/skqp/dm/
DDMSrcSink.cpp116 : fPath(path) in BRDSrc()
163 std::unique_ptr<SkBitmapRegionDecoder> brd(create_brd(fPath)); in draw()
165 return Error::Nonfatal(SkStringPrintf("Could not create brd for %s.", fPath.c_str())); in draw()
267 std::unique_ptr<SkBitmapRegionDecoder> brd(create_brd(fPath)); in size()
283 return SkOSPath::Basename(fPath.c_str()); in name()
285 return get_scaled_name(fPath, 1.0f / (float) fSampleSize); in name()
311 : fPath(path) in CodecSrc()
390 sk_sp<SkData> encoded(SkData::MakeFromFileName(fPath.c_str())); in draw()
392 return SkStringPrintf("Couldn't read %s.", fPath.c_str()); in draw()
397 return SkStringPrintf("Couldn't create codec for %s.", fPath.c_str()); in draw()
[all …]
/external/skia/dm/
DDMSrcSink.cpp120 : fPath(path) in BRDSrc()
167 std::unique_ptr<SkBitmapRegionDecoder> brd(create_brd(fPath)); in draw()
169 return Error::Nonfatal(SkStringPrintf("Could not create brd for %s.", fPath.c_str())); in draw()
271 std::unique_ptr<SkBitmapRegionDecoder> brd(create_brd(fPath)); in size()
287 return SkOSPath::Basename(fPath.c_str()); in name()
289 return get_scaled_name(fPath, 1.0f / (float) fSampleSize); in name()
315 : fPath(path) in CodecSrc()
393 sk_sp<SkData> encoded(SkData::MakeFromFileName(fPath.c_str())); in draw()
395 return SkStringPrintf("Couldn't read %s.", fPath.c_str()); in draw()
400 return SkStringPrintf("Couldn't create codec for %s.", fPath.c_str()); in draw()
[all …]
/external/skqp/experimental/svg/model/
DSkSVGPoly.cpp17 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()
/external/skia/experimental/svg/model/
DSkSVGPoly.cpp17 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()

123456789