Searched refs:lastPt (Results 1 - 25 of 26) sorted by relevance

12

/external/skia/src/utils/win/
H A DSkDWriteGeometrySink.cpp114 SkPoint lastPt; local
115 fPath->getLastPt(&lastPt);
116 D2D1_POINT_2F prevPt = { SkScalarToFloat(lastPt.fX), SkScalarToFloat(lastPt.fY) };
/external/skqp/src/utils/win/
H A DSkDWriteGeometrySink.cpp114 SkPoint lastPt; local
115 fPath->getLastPt(&lastPt);
116 D2D1_POINT_2F prevPt = { SkScalarToFloat(lastPt.fX), SkScalarToFloat(lastPt.fY) };
/external/skia/tests/
H A DPathOpsExtendedTest.cpp88 SkPoint firstPt = {0, 0}, lastPt = {0, 0}; local
94 if (firstPtSet && lastPtSet && firstPt != lastPt) {
95 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt.fX, lastPt.fY,
105 lastPt = pts[1];
111 lastPt = pts[2];
118 lastPt = pts[2];
125 lastPt = pts[3];
129 if (firstPtSet && lastPtSet && firstPt != lastPt) {
130 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt
[all...]
H A DPathTest.cpp3142 SkPoint lastPt; local
3144 lastPt.set(0, 0);
3152 lastPt = lastMoveTo = pts[0];
3157 REPORTER_ASSERT(reporter, pts[0] == lastPt);
3159 lastPt = pts[1];
3165 REPORTER_ASSERT(reporter, pts[0] == lastPt);
3168 lastPt = pts[2];
3173 REPORTER_ASSERT(reporter, pts[0] == lastPt);
3177 lastPt = pts[3];
3181 lastPt
[all...]
/external/skqp/tests/
H A DPathOpsExtendedTest.cpp88 SkPoint firstPt = {0, 0}, lastPt = {0, 0}; local
94 if (firstPtSet && lastPtSet && firstPt != lastPt) {
95 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt.fX, lastPt.fY,
105 lastPt = pts[1];
111 lastPt = pts[2];
118 lastPt = pts[2];
125 lastPt = pts[3];
129 if (firstPtSet && lastPtSet && firstPt != lastPt) {
130 SkDebugf("{{%1.9g,%1.9g}, {%1.9g,%1.9g}},\n", lastPt
[all...]
/external/skia/include/core/
H A DSkPathMeasure.h118 bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt,const SkPoint& lastPt);
H A DSkPath.h1272 /** Returns last point on SkPath in lastPt. Returns false if SkPoint array is empty,
1273 storing (0, 0) if lastPt is not nullptr.
1275 @param lastPt storage for final SkPoint in SkPoint array; may be nullptr
1278 bool getLastPt(SkPoint* lastPt) const;
/external/skqp/include/core/
H A DSkPathMeasure.h118 bool conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt,const SkPoint& lastPt);
H A DSkPath.h1314 /** Returns last point on SkPath in lastPt. Returns false if SkPoint array is empty,
1315 storing (0, 0) if lastPt is not nullptr.
1317 @param lastPt storage for final SkPoint in SkPoint array; may be nullptr
1320 bool getLastPt(SkPoint* lastPt) const;
/external/skia/gm/
H A Dimagescalealigned.cpp111 SkPoint lastPt; local
116 lastPt = drawSet(canvas, set, paint);
121 canvas->translate(lastPt.x() + kSegLen,
/external/skia/src/pathops/
H A DSkOpBuilder.cpp30 SkPoint lastPt; local
31 SkAssertResult(path->getLastPt(&lastPt));
32 temp.moveTo(lastPt);
H A DSkOpSegment.h272 const SkPoint& lastPt() const { function in class:SkOpSegment
/external/skqp/gm/
H A Dimagescalealigned.cpp111 SkPoint lastPt; local
116 lastPt = drawSet(canvas, set, paint);
121 canvas->translate(lastPt.x() + kSegLen,
/external/skqp/src/pathops/
H A DSkOpBuilder.cpp30 SkPoint lastPt; local
31 SkAssertResult(path->getLastPt(&lastPt));
32 temp.moveTo(lastPt);
H A DSkOpSegment.h272 const SkPoint& lastPt() const { function in class:SkOpSegment
/external/skia/src/core/
H A DSkScan_Hairline.cpp535 SkPoint pts[4], firstPt, lastPt;
545 firstPt = lastPt = pts[0];
552 lastPt = pts[1];
559 lastPt = pts[2];
574 lastPt = pts[2];
582 lastPt = pts[3];
585 pts[0] = lastPt;
H A DSkPathMeasure.cpp45 SkPoint lastPt; local
46 SkAssertResult(dst->getLastPt(&lastPt));
47 dst->lineTo(lastPt);
153 const SkPoint& lastPt) {
154 SkPoint midEnds = firstPt + lastPt;
152 conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt, const SkPoint& lastPt) argument
H A DSkPath.cpp687 bool SkPath::getLastPt(SkPoint* lastPt) const {
692 if (lastPt) {
693 *lastPt = fPathRef->atPoint(count - 1);
697 if (lastPt) {
698 lastPt->set(0, 0);
1317 SkPoint lastPt;
1325 } else if (kSkipLineToCheck || !this->getLastPt(&lastPt) ||
1326 !SkScalarNearlyEqual(lastPt.fX, pt.fX) ||
1327 !SkScalarNearlyEqual(lastPt.fY, pt.fY)) {
1940 SkPoint lastPt local
[all...]
/external/skqp/src/core/
H A DSkScan_Hairline.cpp535 SkPoint pts[4], firstPt, lastPt;
545 firstPt = lastPt = pts[0];
552 lastPt = pts[1];
559 lastPt = pts[2];
574 lastPt = pts[2];
582 lastPt = pts[3];
585 pts[0] = lastPt;
H A DSkPathMeasure.cpp45 SkPoint lastPt; local
46 SkAssertResult(dst->getLastPt(&lastPt));
47 dst->lineTo(lastPt);
153 const SkPoint& lastPt) {
154 SkPoint midEnds = firstPt + lastPt;
152 conic_too_curvy(const SkPoint& firstPt, const SkPoint& midTPt, const SkPoint& lastPt) argument
H A DSkPath.cpp678 bool SkPath::getLastPt(SkPoint* lastPt) const {
683 if (lastPt) {
684 *lastPt = fPathRef->atPoint(count - 1);
688 if (lastPt) {
689 lastPt->set(0, 0);
1912 SkPoint lastPt = fLastPt; local
1921 lastPt = fPts[0];
1937 if (!IsLineDegenerate(lastPt, fPts[0], exact)) {
1953 if (!IsQuadDegenerate(lastPt, fPts[0], fPts[1], exact)) {
1969 if (!IsCubicDegenerate(lastPt, fPt
[all...]
/external/skia/samplecode/
H A DSampleAAGeometry.cpp205 SkPoint lastPt = { 0, 0 }; // init to avoid warning local
241 result.lineTo((lastPt.fX + firstPt.fX) / 2, (lastPt.fY + firstPt.fY) / 2);
254 result.lineTo(lastPt = pts[1]);
257 result.quadTo(pts[1], lastPt = pts[2]);
260 result.conicTo(pts[1], lastPt = pts[2], weight);
263 result.cubicTo(pts[1], pts[2], lastPt = pts[3]);
1416 SkPoint pts[4], firstPt, lastPt;
1432 lastPt = pts[1];
1440 lastPt
[all...]
/external/skqp/samplecode/
H A DSampleAAGeometry.cpp205 SkPoint lastPt = { 0, 0 }; // init to avoid warning local
241 result.lineTo((lastPt.fX + firstPt.fX) / 2, (lastPt.fY + firstPt.fY) / 2);
254 result.lineTo(lastPt = pts[1]);
257 result.quadTo(pts[1], lastPt = pts[2]);
260 result.conicTo(pts[1], lastPt = pts[2], weight);
263 result.cubicTo(pts[1], pts[2], lastPt = pts[3]);
1416 SkPoint pts[4], firstPt, lastPt;
1432 lastPt = pts[1];
1440 lastPt
[all...]
/external/skia/src/gpu/ops/
H A DGrDefaultPathRenderer.cpp290 SkPoint lastPt = *(fCurVert - 1); local
304 *(fCurVert++) = lastPt;
/external/skqp/src/gpu/ops/
H A DGrDefaultPathRenderer.cpp290 SkPoint lastPt = *(fCurVert - 1); local
304 *(fCurVert++) = lastPt;

Completed in 575 milliseconds

12