Home
last modified time | relevance | path

Searched refs:lastPt (Results 1 – 25 of 29) sorted by relevance

12

/external/skqp/tests/
DPathOpsExtendedTest.cpp95 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 …]
/external/skia/tests/
DPathOpsExtendedTest.cpp95 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 …]
/external/skqp/src/utils/win/
DSkDWriteGeometrySink.cpp114 SkPoint lastPt; in AddBeziers() local
115 fPath->getLastPt(&lastPt); in AddBeziers()
116 D2D1_POINT_2F prevPt = { SkScalarToFloat(lastPt.fX), SkScalarToFloat(lastPt.fY) }; in AddBeziers()
/external/skia/src/utils/win/
DSkDWriteGeometrySink.cpp114 SkPoint lastPt; in AddBeziers() local
115 fPath->getLastPt(&lastPt); in AddBeziers()
116 D2D1_POINT_2F prevPt = { SkScalarToFloat(lastPt.fX), SkScalarToFloat(lastPt.fY) }; in AddBeziers()
/external/skia/src/pathops/
DSkOpBuilder.cpp30 SkPoint lastPt; in ReversePath() local
31 SkAssertResult(path->getLastPt(&lastPt)); in ReversePath()
32 temp.moveTo(lastPt); in ReversePath()
DSkOpSegment.h272 const SkPoint& lastPt() const { in lastPt() function
/external/skqp/src/pathops/
DSkOpBuilder.cpp30 SkPoint lastPt; in ReversePath() local
31 SkAssertResult(path->getLastPt(&lastPt)); in ReversePath()
32 temp.moveTo(lastPt); in ReversePath()
DSkOpSegment.h272 const SkPoint& lastPt() const { in lastPt() function
/external/skia/gm/
Dimagescalealigned.cpp111 SkPoint lastPt; in drawSets() local
116 lastPt = drawSet(canvas, set, paint); in drawSets()
121 canvas->translate(lastPt.x() + kSegLen, in drawSets()
/external/skqp/gm/
Dimagescalealigned.cpp111 SkPoint lastPt; in drawSets() local
116 lastPt = drawSet(canvas, set, paint); in drawSets()
121 canvas->translate(lastPt.x() + kSegLen, in drawSets()
/external/skqp/src/core/
DSkScan_Hairline.cpp562 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()
DSkPathMeasure.cpp46 SkPoint lastPt; in SkPathMeasure_segTo() local
47 SkAssertResult(dst->getLastPt(&lastPt)); in SkPathMeasure_segTo()
48 dst->lineTo(lastPt); in SkPathMeasure_segTo()
155 const SkPoint& lastPt) { in conic_too_curvy() argument
156 SkPoint midEnds = firstPt + lastPt; in conic_too_curvy()
DSkPath.cpp480 const SkPoint* lastPt = nullptr; // last point in the rect (last of lines or first if closed) in isRectContour() local
500 lastPt = pts; in isRectContour()
571 closeXY = *firstPt - *lastPt; in isRectContour()
595 closeXY = *firstPt - *lastPt; in isRectContour()
705 bool SkPath::getLastPt(SkPoint* lastPt) const { in getLastPt()
710 if (lastPt) { in getLastPt()
711 *lastPt = fPathRef->atPoint(count - 1); in getLastPt()
715 if (lastPt) { in getLastPt()
716 lastPt->set(0, 0); in getLastPt()
1357 SkPoint lastPt; in arcTo() local
[all …]
/external/skia/src/core/
DSkScan_Hairline.cpp562 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()
DSkContourMeasure.cpp36 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()
DSkPath.cpp480 const SkPoint* lastPt = nullptr; // last point in the rect (last of lines or first if closed) in isRectContour() local
500 lastPt = pts; in isRectContour()
571 closeXY = *firstPt - *lastPt; in isRectContour()
595 closeXY = *firstPt - *lastPt; in isRectContour()
705 bool SkPath::getLastPt(SkPoint* lastPt) const { in getLastPt()
710 if (lastPt) { in getLastPt()
711 *lastPt = fPathRef->atPoint(count - 1); in getLastPt()
715 if (lastPt) { in getLastPt()
716 lastPt->set(0, 0); in getLastPt()
1357 SkPoint lastPt; in arcTo() local
[all …]
/external/skqp/samplecode/
DSampleAAGeometry.cpp206 SkPoint lastPt = { 0, 0 }; // init to avoid warning in add_path_segment() local
242 result.lineTo((lastPt.fX + firstPt.fX) / 2, (lastPt.fY + firstPt.fY) / 2); in add_path_segment()
255 result.lineTo(lastPt = pts[1]); in add_path_segment()
258 result.quadTo(pts[1], lastPt = pts[2]); in add_path_segment()
261 result.conicTo(pts[1], lastPt = pts[2], weight); in add_path_segment()
264 result.cubicTo(pts[1], pts[2], lastPt = pts[3]); in add_path_segment()
1415 SkPoint pts[4], firstPt, lastPt; in path_stroke()
1431 lastPt = pts[1]; in path_stroke()
1439 lastPt = pts[2]; in path_stroke()
1447 lastPt = pts[2]; in path_stroke()
[all …]
/external/skia/samplecode/
DSampleAAGeometry.cpp206 SkPoint lastPt = { 0, 0 }; // init to avoid warning in add_path_segment() local
242 result.lineTo((lastPt.fX + firstPt.fX) / 2, (lastPt.fY + firstPt.fY) / 2); in add_path_segment()
255 result.lineTo(lastPt = pts[1]); in add_path_segment()
258 result.quadTo(pts[1], lastPt = pts[2]); in add_path_segment()
261 result.conicTo(pts[1], lastPt = pts[2], weight); in add_path_segment()
264 result.cubicTo(pts[1], pts[2], lastPt = pts[3]); in add_path_segment()
1415 SkPoint pts[4], firstPt, lastPt; in path_stroke()
1431 lastPt = pts[1]; in path_stroke()
1439 lastPt = pts[2]; in path_stroke()
1447 lastPt = pts[2]; in path_stroke()
[all …]
/external/skqp/include/core/
DSkPathMeasure.h121 bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt,const SkPoint& lastPt);
DSkPath.h1348 bool getLastPt(SkPoint* lastPt) const;
/external/skia/src/gpu/ops/
DGrDefaultPathRenderer.cpp294 SkPoint lastPt = *(fCurVert - 1); in needSpace() local
308 *(fCurVert++) = lastPt; in needSpace()
/external/skqp/src/gpu/ops/
DGrDefaultPathRenderer.cpp296 SkPoint lastPt = *(fCurVert - 1); in needSpace() local
310 *(fCurVert++) = lastPt; in needSpace()
/external/skia/docs/
DSkPath_Reference.bmh1751 SkPoint lastPt;
1752 path.getLastPt(&lastPt);
1753 canvas->drawString("start", lastPt.fX, lastPt.fY, paint);
2506 SkPoint lastPt;
2507 (void) path.getLastPt(&lastPt);
2510 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX };
2512 canvas->drawLine(lastPt, center, tangentPaint);
2544 SkPoint lastPt;
2545 (void) path.getLastPt(&lastPt);
2548 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX };
[all …]
/external/skqp/docs/
DSkPath_Reference.bmh1751 SkPoint lastPt;
1752 path.getLastPt(&lastPt);
1753 canvas->drawString("start", lastPt.fX, lastPt.fY, paint);
2506 SkPoint lastPt;
2507 (void) path.getLastPt(&lastPt);
2510 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX };
2512 canvas->drawLine(lastPt, center, tangentPaint);
2544 SkPoint lastPt;
2545 (void) path.getLastPt(&lastPt);
2548 SkPoint center = { lastPt.fX - radial.fY, lastPt.fY + radial.fX };
[all …]
/external/skia/include/core/
DSkPath.h1348 bool getLastPt(SkPoint* lastPt) const;

12