Home
last modified time | relevance | path

Searched refs:fDistSq (Results 1 – 4 of 4) sorted by relevance

/external/skqp/src/core/
DSkDistanceFieldGen.cpp19 float fDistSq; // distance squared to nearest (so far) edge texel member
184 currData->fDistSq = dist*dist; in init_distances()
187 currData->fDistSq = 2000000.f; in init_distances()
207 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); in F1()
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()
[all …]
/external/skia/src/core/
DSkDistanceFieldGen.cpp20 float fDistSq; // distance squared to nearest (so far) edge texel member
185 currData->fDistSq = dist*dist; in init_distances()
188 currData->fDistSq = 2000000.f; in init_distances()
208 float distSq = check->fDistSq - 2.0f*(distVec.fX + distVec.fY - 1.0f); in F1()
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()
[all …]
/external/skqp/src/gpu/
DGrDistanceFieldGenFromVector.cpp50 float fDistSq; // distance squared to nearest (so far) edge member
356 currData->fDistSq = SK_DistanceFieldMagnitude * SK_DistanceFieldMagnitude; in init_distances()
689 const float distSq = dataPtr[idx].fDistSq; in calculate_distance_field_data()
715 dataPtr[idx].fDistSq = currDistSq; in calculate_distance_field_data()
860 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath()
870 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath()
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp53 float fDistSq; // distance squared to nearest (so far) edge member
330 currData->fDistSq = SK_DistanceFieldMagnitude * SK_DistanceFieldMagnitude; in init_distances()
662 const float distSq = dataPtr[idx].fDistSq; in calculate_distance_field_data()
685 dataPtr[idx].fDistSq = currDistSq; in calculate_distance_field_data()
829 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath()
839 const float miniDist = sqrt(dataPtr[idx].fDistSq); in GrGenerateDistanceFieldFromPath()