Home
last modified time | relevance | path

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

/external/skia/tests/
DPathOpsExtendedTest.cpp57 SkPoint firstPt = {0, 0}, lastPt = {0, 0}; in showPathData() local
63 if (firstPtSet && lastPtSet && firstPt != lastPt) { in showPathData()
64 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt.fX, lastPt.fY, in showPathData()
74 lastPt = pts[1]; in showPathData()
80 lastPt = pts[2]; in showPathData()
87 lastPt = pts[2]; in showPathData()
94 lastPt = pts[3]; in showPathData()
98 if (firstPtSet && lastPtSet && firstPt != lastPt) { in showPathData()
99 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt.fX, lastPt.fY, in showPathData()
109 if (firstPtSet && lastPtSet && firstPt != lastPt) { in showPathData()
[all …]
DPathTest.cpp2839 SkPoint lastPt; in test_raw_iter() local
2841 lastPt.set(0, 0); in test_raw_iter()
2849 lastPt = lastMoveTo = pts[0]; in test_raw_iter()
2854 REPORTER_ASSERT(reporter, pts[0] == lastPt); in test_raw_iter()
2856 lastPt = pts[1]; in test_raw_iter()
2862 REPORTER_ASSERT(reporter, pts[0] == lastPt); in test_raw_iter()
2865 lastPt = pts[2]; in test_raw_iter()
2870 REPORTER_ASSERT(reporter, pts[0] == lastPt); in test_raw_iter()
2874 lastPt = pts[3]; in test_raw_iter()
2878 lastPt = lastMoveTo; in test_raw_iter()
/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/gm/
Dimagescalealigned.cpp108 SkPoint lastPt; in drawSets() local
113 lastPt = drawSet(canvas, set, paint); in drawSets()
118 canvas->translate(lastPt.x() + kSegLen, in drawSets()
/external/skia/src/gpu/effects/
DGrConvexPolyEffect.cpp268 for (int lastPt = count - 1, i = 0; i < count; lastPt = i++) { in Create() local
269 if (pts[lastPt] != pts[i]) { in Create()
270 SkVector v = pts[i] - pts[lastPt]; in Create()
/external/skia/src/core/
DSkScan_Hairline.cpp521 SkPoint pts[4], firstPt, lastPt; in hair_path() local
531 firstPt = lastPt = pts[0]; in hair_path()
538 lastPt = pts[1]; in hair_path()
545 lastPt = pts[2]; in hair_path()
560 lastPt = pts[2]; in hair_path()
568 lastPt = pts[3]; in hair_path()
571 pts[0] = lastPt; in hair_path()
DSkPathMeasure.cpp69 const SkPoint& lastPt) { in conic_too_curvy() argument
70 SkPoint midEnds = firstPt + lastPt; in conic_too_curvy()
393 SkPoint lastPt; in seg_to() local
394 SkAssertResult(dst->getLastPt(&lastPt)); in seg_to()
395 dst->lineTo(lastPt); in seg_to()
DSkPath.cpp659 bool SkPath::getLastPt(SkPoint* lastPt) const { in getLastPt()
664 if (lastPt) { in getLastPt()
665 *lastPt = fPathRef->atPoint(count - 1); in getLastPt()
669 if (lastPt) { in getLastPt()
670 lastPt->set(0, 0); in getLastPt()
1850 SkPoint lastPt = fLastPt; in consumeDegenerateSegments() local
1859 lastPt = fPts[0]; in consumeDegenerateSegments()
1875 if (!IsLineDegenerate(lastPt, fPts[0], exact)) { in consumeDegenerateSegments()
1891 if (!IsQuadDegenerate(lastPt, fPts[0], fPts[1], exact)) { in consumeDegenerateSegments()
1907 if (!IsCubicDegenerate(lastPt, fPts[0], fPts[1], fPts[2], exact)) { in consumeDegenerateSegments()
/external/skia/include/core/
DSkPathMeasure.h117 bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt,const SkPoint& lastPt);
DSkPath.h886 bool getLastPt(SkPoint* lastPt) const;
/external/skia/src/pathops/
DSkOpSpan.cpp167 segment->tail()->alignEnd(1, segment->lastPt()); in align()
185 SkASSERT(t ? segment->lastPt() == pt : segment->pts()[0] == pt); in alignEnd()
DSkOpSegment.h256 const SkPoint& lastPt() const { in lastPt() function
DSkPathOpsDebug.cpp1506 SkASSERT(t ? segment->lastPt() == pt : segment->pts()[0] == pt); in debugAlignedEnd()
1510 if ((t ? segment->lastPt() : segment->pts()[0]) != pt) { in debugAlignedEnd()
1525 if ((test->fT ? other->lastPt() : other->pts()[0]) != pt) { in debugAlignedEnd()