/external/skqp/src/core/ |
D | SkDistanceFieldGen.cpp | 207 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); in F1() local 208 if (distSq < curr->fDistSq) { in F1() 211 curr->fDistSq = distSq; in F1() 218 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f; in F1() 219 if (distSq < curr->fDistSq) { in F1() 221 curr->fDistSq = distSq; in F1() 228 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f); in F1() 229 if (distSq < curr->fDistSq) { in F1() 232 curr->fDistSq = distSq; in F1() 239 distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; in F1() [all …]
|
/external/skia/src/core/ |
D | SkDistanceFieldGen.cpp | 207 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); in F1() local 208 if (distSq < curr->fDistSq) { in F1() 211 curr->fDistSq = distSq; in F1() 218 distSq = check->fDistSq - 2.0f*distVec.fY + 1.0f; in F1() 219 if (distSq < curr->fDistSq) { in F1() 221 curr->fDistSq = distSq; in F1() 228 distSq = check->fDistSq + 2.0f*(distVec.fX - distVec.fY + 1.0f); in F1() 229 if (distSq < curr->fDistSq) { in F1() 232 curr->fDistSq = distSq; in F1() 239 distSq = check->fDistSq - 2.0f*distVec.fX + 1.0f; in F1() [all …]
|
/external/skia/tests/ |
D | PathOpsLineParametetersTest.cpp | 54 double distSq = denormalizedDistance[inner]; in DEF_TEST() local 55 distSq *= distSq; in DEF_TEST() 58 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { in DEF_TEST() 65 distSq, answersSq, normalSquared); in DEF_TEST()
|
/external/skqp/tests/ |
D | PathOpsLineParametetersTest.cpp | 54 double distSq = denormalizedDistance[inner]; in DEF_TEST() local 55 distSq *= distSq; in DEF_TEST() 58 if (AlmostEqualUlps(distSq, normalSquared * answersSq)) { in DEF_TEST() 65 distSq, answersSq, normalSquared); in DEF_TEST()
|
/external/skqp/src/pathops/ |
D | SkPathOpsLine.cpp | 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()
|
D | SkPathOpsTSect.cpp | 27 double distSq = (fPerpPt - cPt).lengthSquared(); in setPerp() local 29 if (dist2Sq < distSq) { in setPerp() 1118 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); in linesIntersect() local 1119 if (closest > distSq) { in linesIntersect() 1120 closest = distSq; in linesIntersect() 1137 double distSq = oppIPt.distanceSquared(iPt); in linesIntersect() local 1138 if (bestDistSq < distSq || ++loopCount > 5) { in linesIntersect() 1141 bestDistSq = distSq; in linesIntersect()
|
D | SkOpSegment.cpp | 508 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()
|
D | SkPathOpsDebug.cpp | 1272 double testMidDistSq = testSegment->distSq(testMidT, next); in debugCheckNearCoincidence() 1273 double testEndDistSq = testSegment->distSq(testEndT, next); in debugCheckNearCoincidence() 1276 double distSq = testStartPt.distanceSquared(nextStartPt); in debugCheckNearCoincidence() local 1279 double nextMidDistSq = nextSegment->distSq(nextMidT, test); in debugCheckNearCoincidence() 1280 double nextEndDistSq = nextSegment->distSq(nextEndT, test); in debugCheckNearCoincidence() 1281 SkDebugf("%s distSq=%1.9g testId=%d nextId=%d\n", __FUNCTION__, distSq, in debugCheckNearCoincidence()
|
D | SkOpSegment.h | 186 double distSq(double t, const SkOpAngle* opp) const;
|
/external/skia/src/pathops/ |
D | SkPathOpsLine.cpp | 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()
|
D | SkPathOpsTSect.cpp | 27 double distSq = (fPerpPt - cPt).lengthSquared(); in setPerp() local 29 if (dist2Sq < distSq) { in setPerp() 1118 double distSq = thisRayI.pt(index).distanceSquared(oppRayI.pt(oIndex)); in linesIntersect() local 1119 if (closest > distSq) { in linesIntersect() 1120 closest = distSq; in linesIntersect() 1137 double distSq = oppIPt.distanceSquared(iPt); in linesIntersect() local 1138 if (bestDistSq < distSq || ++loopCount > 5) { in linesIntersect() 1141 bestDistSq = distSq; in linesIntersect()
|
D | SkOpSegment.cpp | 508 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()
|
D | SkPathOpsDebug.cpp | 1272 double testMidDistSq = testSegment->distSq(testMidT, next); in debugCheckNearCoincidence() 1273 double testEndDistSq = testSegment->distSq(testEndT, next); in debugCheckNearCoincidence() 1276 double distSq = testStartPt.distanceSquared(nextStartPt); in debugCheckNearCoincidence() local 1279 double nextMidDistSq = nextSegment->distSq(nextMidT, test); in debugCheckNearCoincidence() 1280 double nextEndDistSq = nextSegment->distSq(nextEndT, test); in debugCheckNearCoincidence() 1281 SkDebugf("%s distSq=%1.9g testId=%d nextId=%d\n", __FUNCTION__, distSq, in debugCheckNearCoincidence()
|
D | SkOpSegment.h | 186 double distSq(double t, const SkOpAngle* opp) const;
|
/external/skia/samplecode/ |
D | SampleLitAtlas.cpp | 244 SkScalar distSq = (x - bigCenter.fX) * (x - bigCenter.fX) + in MakeAtlas() local 246 if (distSq > kBigSize*kBigSize/4.0f) { in MakeAtlas() 278 SkScalar distSq = (x - smCenter.fX) * (x - smCenter.fX) + in MakeAtlas() local 280 if (distSq > kSmSize*kSmSize/4.0f) { in MakeAtlas()
|
/external/skqp/samplecode/ |
D | SampleLitAtlas.cpp | 244 SkScalar distSq = (x - bigCenter.fX) * (x - bigCenter.fX) + in MakeAtlas() local 246 if (distSq > kBigSize*kBigSize/4.0f) { in MakeAtlas() 278 SkScalar distSq = (x - smCenter.fX) * (x - smCenter.fX) + in MakeAtlas() local 280 if (distSq > kSmSize*kSmSize/4.0f) { in MakeAtlas()
|
/external/skqp/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 689 const float distSq = dataPtr[idx].fDistSq; in calculate_distance_field_data() local 690 int dilation = distSq < 1.5 * 1.5 ? 1 : in calculate_distance_field_data() 691 distSq < 2.5 * 2.5 ? 2 : in calculate_distance_field_data() 692 distSq < 3.5 * 3.5 ? 3 : SK_DistanceFieldPad; in calculate_distance_field_data() 714 if (currDistSq < distSq) { in calculate_distance_field_data()
|
/external/skia/src/gpu/ |
D | GrDistanceFieldGenFromVector.cpp | 689 const float distSq = dataPtr[idx].fDistSq; in calculate_distance_field_data() local 690 int dilation = distSq < 1.5 * 1.5 ? 1 : in calculate_distance_field_data() 691 distSq < 2.5 * 2.5 ? 2 : in calculate_distance_field_data() 692 distSq < 3.5 * 3.5 ? 3 : SK_DistanceFieldPad; in calculate_distance_field_data() 714 if (currDistSq < distSq) { in calculate_distance_field_data()
|
/external/skqp/src/utils/ |
D | SkShadowTessellator.cpp | 148 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() local 149 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()
|
/external/skia/src/utils/ |
D | SkShadowTessellator.cpp | 148 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() local 149 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()
|
/external/skia/src/gpu/ops/ |
D | GrAAConvexTessellator.cpp | 58 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() local 59 return distSq < kCloseSqd; in duplicate_pt()
|
/external/skqp/src/gpu/ops/ |
D | GrAAConvexTessellator.cpp | 58 SkScalar distSq = SkPointPriv::DistanceToSqd(p0, p1); in duplicate_pt() local 59 return distSq < kCloseSqd; in duplicate_pt()
|