Home
last modified time | relevance | path

Searched refs:distSq (Results 1 - 10 of 10) sorted by relevance

/third_party/skia/src/core/
H A DSkDistanceFieldGen.cpp208 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); in F1() local
209 if (distSq < curr->fDistSq) { in F1()
212 curr->fDistSq = distSq; in F1()
219 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f; in F1()
220 if (distSq < curr->fDistSq) { in F1()
222 curr->fDistSq = distSq; in F1()
229 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f); in F1()
230 if (distSq < curr->fDistSq) { in F1()
233 curr->fDistSq = distSq; in F1()
240 distSq in F1()
254 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; F2() local
268 float distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; B1() local
282 float distSq = check->fDistSq + 2.0f*distVec.fX + 1.0f; B2() local
[all...]
/third_party/skia/tests/
H A DPathOpsLineParametetersTest.cpp54 double distSq = denormalizedDistance[inner]; in DEF_TEST() local
55 distSq *= distSq; in DEF_TEST()
58 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { in DEF_TEST()
62 " distSq:%g answerSq:%g normalSquared:%g\n", in DEF_TEST()
65 distSq, answersSq, normalSquared); in DEF_TEST()
/third_party/skia/src/pathops/
H A DSkPathOpsLine.cpp49 double dist = realPt.distance(xy); // OPTIMIZATION: can we compare against distSq instead ? in nearPoint()
73 double dist = realPt.distance(xy); // OPTIMIZATION: can we compare against distSq instead ? in nearRay()
105 double distSq = distU.fX * distU.fX + distU.fY * distU.fY; in NearPointH() local
106 double dist = sqrt(distSq); // OPTIMIZATION: can we compare against distSq instead ? in NearPointH()
140 double distSq = distU.fX * distU.fX + distU.fY * distU.fY; in NearPointV() local
141 double dist = sqrt(distSq); // OPTIMIZATION: can we compare against distSq instead ? in NearPointV()
H A DSkPathOpsTSect.cpp28 double distSq = (fPerpPt - cPt).lengthSquared(); in setPerp() local
30 if (dist2Sq < distSq) { in setPerp()
1119 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); in linesIntersect() local
1120 if (closest > distSq) { in linesIntersect()
1121 closest = distSq; in linesIntersect()
1138 double distSq = oppIPt.distanceSquared(iPt); in linesIntersect() local
1139 if (bestDistSq < distSq || ++loopCount > 5) { in linesIntersect()
1142 bestDistSq = distSq; in linesIntersect()
H A DSkOpSegment.cpp508 double SkOpSegment::distSq(double t, const SkOpAngle* oppAngle) const { in distSq() function in SkOpSegment
1413 SkScalar distSq = SkPointPriv::DistanceToSqd(ref->fPt, check->fPt); in spansNearby() local
1414 if (distSqBest > distSq && (refSeg != check->segment() in spansNearby()
1416 distSqBest = distSq; in spansNearby()
H A DSkPathOpsDebug.cpp1249 double testMidDistSq = testSegment->distSq(testMidT, next); in debugCheckNearCoincidence()
1250 double testEndDistSq = testSegment->distSq(testEndT, next); in debugCheckNearCoincidence()
1253 double distSq = testStartPt.distanceSquared(nextStartPt); in debugCheckNearCoincidence() local
1256 double nextMidDistSq = nextSegment->distSq(nextMidT, test); in debugCheckNearCoincidence()
1257 double nextEndDistSq = nextSegment->distSq(nextEndT, test); in debugCheckNearCoincidence()
1258 SkDebugf("%s distSq=%1.9g testId=%d nextId=%d\n", __FUNCTION__, distSq, in debugCheckNearCoincidence()
H A DSkOpSegment.h186 double distSq(double t, const SkOpAngle* opp) const;
/third_party/skia/src/gpu/
H A DGrDistanceFieldGenFromVector.cpp675 const float distSq = dataPtr[idx].fDistSq; in calculate_distance_field_data() local
678 int dilation = distSq < 1.5f * 1.5f ? 1 : in calculate_distance_field_data()
679 distSq < 2.5f * 2.5f ? 2 : in calculate_distance_field_data()
680 distSq < 3.5f * 3.5f ? 3 : SK_DistanceFieldPad; in calculate_distance_field_data()
697 if (currDistSq < distSq) { in calculate_distance_field_data()
/third_party/skia/src/utils/
H A DSkShadowTessellator.cpp146 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() local
147 return distSq < kCloseSqd; in duplicate_pt()
265 SkScalar distSq = SkPointPriv::DistanceToLineSegmentBetweenSqd(fCentroid, currPoint, in computeConvexShadow() local
267 if (distSq < minDistSq) { in computeConvexShadow()
268 minDistSq = distSq; in computeConvexShadow()
/third_party/skia/src/gpu/geometry/
H A DGrAAConvexTessellator.cpp59 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() local
60 return distSq < kCloseSqd; in duplicate_pt()

Completed in 19 milliseconds