/third_party/skia/tests/ |
D | SkPathRangeIterTest.cpp | 94 SkPoint lastPt = {0,0}; in DEF_TEST() local 100 lastPt = pathPts[0]; in DEF_TEST() 104 startPt = lastPt = pathPts[0]; in DEF_TEST() 107 REPORTER_ASSERT(r, pathPts[0] == lastPt); in DEF_TEST() 109 lastPt = pathPts[1]; in DEF_TEST() 112 REPORTER_ASSERT(r, pathPts[0] == lastPt); in DEF_TEST() 115 lastPt = pathPts[2]; in DEF_TEST() 118 REPORTER_ASSERT(r, pathPts[0] == lastPt); in DEF_TEST() 122 lastPt = pathPts[3]; in DEF_TEST() 125 REPORTER_ASSERT(r, pathPts[0] == lastPt); in DEF_TEST() [all …]
|
/third_party/skia/docs/examples/ |
D | Path_arcTo_2_b.cpp | 23 SkPoint lastPt; 24 (void) path.getLastPt(&lastPt); 27 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX }; 28 canvas->drawLine(lastPt, center, tangentPaint);
|
D | Path_arcTo_2_a.cpp | 23 SkPoint lastPt; 24 (void) path.getLastPt(&lastPt); 27 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX }; 29 canvas->drawLine(lastPt, center, tangentPaint);
|
D | Path_rMoveTo.cpp | 17 SkPoint lastPt; 18 path.getLastPt(&lastPt); 19 canvas->drawString("start", lastPt.fX, lastPt.fY, paint);
|
/third_party/flutter/skia/docs/examples/ |
D | Path_arcTo_2_a.cpp | 23 SkPoint lastPt; 24 (void) path.getLastPt(&lastPt); 27 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX }; 29 canvas->drawLine(lastPt, center, tangentPaint);
|
D | Path_arcTo_2_b.cpp | 23 SkPoint lastPt; 24 (void) path.getLastPt(&lastPt); 27 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX }; 28 canvas->drawLine(lastPt, center, tangentPaint);
|
D | Path_rMoveTo.cpp | 17 SkPoint lastPt; 18 path.getLastPt(&lastPt); 19 canvas->drawString("start", lastPt.fX, lastPt.fY, paint);
|
/third_party/flutter/skia/tests/ |
D | PathOpsExtendedTest.cpp | 95 SkPoint firstPt = {0, 0}, lastPt = {0, 0}; in showPathData() local 101 if (firstPtSet && lastPtSet && firstPt != lastPt) { in showPathData() 102 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt.fX, lastPt.fY, in showPathData() 112 lastPt = pts[1]; in showPathData() 118 lastPt = pts[2]; in showPathData() 125 lastPt = pts[2]; in showPathData() 132 lastPt = pts[3]; in showPathData() 136 if (firstPtSet && lastPtSet && firstPt != lastPt) { in showPathData() 137 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt.fX, lastPt.fY, in showPathData() 147 if (firstPtSet && lastPtSet && firstPt != lastPt) { in showPathData() [all …]
|
/third_party/flutter/skia/src/utils/win/ |
D | SkDWriteGeometrySink.cpp | 115 SkPoint lastPt; in SK_STDMETHODIMP_() local 116 fPath->getLastPt(&lastPt); in SK_STDMETHODIMP_() 117 D2D1_POINT_2F prevPt = { SkScalarToFloat(lastPt.fX), SkScalarToFloat(lastPt.fY) }; in SK_STDMETHODIMP_()
|
/third_party/skia/samplecode/ |
D | SampleSimpleStroker.cpp | 62 bool getLastPt(SkPoint* lastPt) const { in getLastPt() 66 *lastPt = fPoints.back(); in getLastPt() 70 void setLastPt(SkPoint lastPt) { in setLastPt() argument 72 moveTo(lastPt); in setLastPt() 74 fPoints.back().set(lastPt.fX, lastPt.fY); in setLastPt()
|
/third_party/flutter/skia/src/pathops/ |
D | SkOpBuilder.cpp | 30 SkPoint lastPt; in ReversePath() local 31 SkAssertResult(path->getLastPt(&lastPt)); in ReversePath() 32 temp.moveTo(lastPt); in ReversePath()
|
D | SkOpSegment.h | 272 const SkPoint& lastPt() const { in lastPt() function
|
/third_party/skia/src/pathops/ |
D | SkOpBuilder.cpp | 30 SkPoint lastPt; in ReversePath() local 31 SkAssertResult(path->getLastPt(&lastPt)); in ReversePath() 32 temp.moveTo(lastPt); in ReversePath()
|
D | SkOpSegment.h | 272 const SkPoint& lastPt() const { in lastPt() function
|
/third_party/flutter/skia/gm/ |
D | imagescalealigned.cpp | 121 SkPoint lastPt; in drawSets() local 126 lastPt = drawSet(canvas, set, paint); in drawSets() 131 canvas->translate(lastPt.x() + kSegLen, in drawSets()
|
/third_party/skia/gm/ |
D | imagescalealigned.cpp | 120 SkPoint lastPt; in drawSets() local 124 lastPt = drawSet(canvas, set, samplings[k], paint); in drawSets() 129 canvas->translate(lastPt.x() + kSegLen, in drawSets()
|
/third_party/skia/src/core/ |
D | SkScan_Hairline.cpp | 572 SkPoint pts[4], firstPt, lastPt; in hair_path() local 586 firstPt = lastPt = pts[0]; in hair_path() 593 lastPt = pts[1]; in hair_path() 600 lastPt = pts[2]; in hair_path() 614 lastPt = pts[2]; in hair_path() 622 lastPt = pts[3]; in hair_path() 625 pts[0] = lastPt; in hair_path()
|
D | SkContourMeasure.cpp | 41 SkPoint lastPt; in SkContourMeasure_segTo() local 42 SkAssertResult(dst->getLastPt(&lastPt)); in SkContourMeasure_segTo() 43 dst->lineTo(lastPt); in SkContourMeasure_segTo() 150 const SkPoint& lastPt, SkScalar tolerance) { in conic_too_curvy() argument 151 SkPoint midEnds = firstPt + lastPt; in conic_too_curvy()
|
D | SkPath.cpp | 511 bool SkPath::getLastPt(SkPoint* lastPt) const { in getLastPt() 516 if (lastPt) { in getLastPt() 517 *lastPt = fPathRef->atPoint(count - 1); in getLastPt() 521 if (lastPt) { in getLastPt() 522 lastPt->set(0, 0); in getLastPt() 1117 SkPoint lastPt; in arcTo() local 1120 } else if (!this->getLastPt(&lastPt) || in arcTo() 1121 !SkScalarNearlyEqual(lastPt.fX, pt.fX) || in arcTo() 1122 !SkScalarNearlyEqual(lastPt.fY, pt.fY)) { in arcTo() 1411 SkPoint lastPt; in addPath() local [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkScan_Hairline.cpp | 562 SkPoint pts[4], firstPt, lastPt; in hair_path() local 572 firstPt = lastPt = pts[0]; in hair_path() 579 lastPt = pts[1]; in hair_path() 586 lastPt = pts[2]; in hair_path() 601 lastPt = pts[2]; in hair_path() 609 lastPt = pts[3]; in hair_path() 612 pts[0] = lastPt; in hair_path()
|
D | SkContourMeasure.cpp | 36 SkPoint lastPt; in SkContourMeasure_segTo() local 37 SkAssertResult(dst->getLastPt(&lastPt)); in SkContourMeasure_segTo() 38 dst->lineTo(lastPt); in SkContourMeasure_segTo() 145 const SkPoint& lastPt, SkScalar tolerance) { in conic_too_curvy() argument 146 SkPoint midEnds = firstPt + lastPt; in conic_too_curvy()
|
D | SkPath.cpp | 486 const SkPoint* lastPt = nullptr; // last point in the rect (last of lines or first if closed) in isRectContour() local 506 lastPt = pts; in isRectContour() 577 closeXY = *firstPt - *lastPt; in isRectContour() 601 closeXY = *firstPt - *lastPt; in isRectContour() 722 bool SkPath::getLastPt(SkPoint* lastPt) const { in getLastPt() 727 if (lastPt) { in getLastPt() 728 *lastPt = fPathRef->atPoint(count - 1); in getLastPt() 732 if (lastPt) { in getLastPt() 733 lastPt->set(0, 0); in getLastPt() 1379 SkPoint lastPt; in arcTo() local [all …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleAAGeometry.cpp | 204 SkPoint lastPt = { 0, 0 }; // init to avoid warning in add_path_segment() local 240 result.lineTo((lastPt.fX + firstPt.fX) / 2, (lastPt.fY + firstPt.fY) / 2); in add_path_segment() 253 result.lineTo(lastPt = pts[1]); in add_path_segment() 256 result.quadTo(pts[1], lastPt = pts[2]); in add_path_segment() 259 result.conicTo(pts[1], lastPt = pts[2], weight); in add_path_segment() 262 result.cubicTo(pts[1], pts[2], lastPt = pts[3]); in add_path_segment() 1410 SkPoint pts[4], firstPt, lastPt; in path_stroke() 1426 lastPt = pts[1]; in path_stroke() 1434 lastPt = pts[2]; in path_stroke() 1442 lastPt = pts[2]; in path_stroke() [all …]
|
/third_party/flutter/skia/src/gpu/ops/ |
D | GrDefaultPathRenderer.cpp | 295 SkPoint lastPt = *(fCurVert - 1); in needSpace() local 309 *(fCurVert++) = lastPt; in needSpace()
|
/third_party/flutter/skia/include/core/ |
D | SkPath.h | 1345 bool getLastPt(SkPoint* lastPt) const;
|