Home
last modified time | relevance | path

Searched refs:SK_ScalarNearlyZero (Results 1 – 17 of 17) sorted by relevance

/external/skia/src/core/
DSkPoint3.cpp23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
DSkScalerContext.cpp734 if (diag[0].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
735 diag[1].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
736 diag[2].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero || in computeMatrices()
737 diag[3].lengthSqd() <= SK_ScalarNearlyZero * SK_ScalarNearlyZero) in computeMatrices()
DSkPoint.cpp95 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in isLengthNearlyZero()
DSkGeometry.cpp585 if (discr > SK_ScalarNearlyZero) { in classify_cubic()
587 } else if (discr < -SK_ScalarNearlyZero) { in classify_cubic()
1274 if (absY <= SK_ScalarNearlyZero && x > 0 && ((y >= 0 && kCW_SkRotationDirection == dir) || in BuildUnitArc()
1292 SkASSERT(SkScalarAbs(x + SK_Scalar1) <= SK_ScalarNearlyZero); in BuildUnitArc()
1294 SkASSERT(absY - SK_Scalar1 <= SK_ScalarNearlyZero); in BuildUnitArc()
1319 SkASSERT(0 <= dot && dot <= SK_Scalar1 + SK_ScalarNearlyZero); in BuildUnitArc()
DSkMatrix.cpp195 return SkScalarNearlyZero(perp_dot, SK_ScalarNearlyZero*SK_ScalarNearlyZero); in is_degenerate_2x2()
776 …if (SkScalarNearlyZero((float)det, SK_ScalarNearlyZero * SK_ScalarNearlyZero * SK_ScalarNearlyZero in sk_inv_determinant()
1451 if (bSqd <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in get_scale_factor()
DSkPath.cpp2339 if (!SkScalarNearlyZero(fLastVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange()
2340 !SkScalarNearlyZero(curVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange()
DSkStroke.cpp410 && fPrevPt.equalsWithinTolerance(currPt, SK_ScalarNearlyZero * fInvResScale)) { in lineTo()
/external/skia/src/gpu/
DGrPathUtils.cpp228 || SkScalarNearlyZero((float)det, SK_ScalarNearlyZero * SK_ScalarNearlyZero)) { in set()
411 if (ab.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
412 if (dc.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
421 if (dc.lengthSqd() < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
434 bool doQuads = dc.lengthSqd() < SK_ScalarNearlyZero || in convert_noninflect_cubic_to_quads()
435 ab.lengthSqd() < SK_ScalarNearlyZero; in convert_noninflect_cubic_to_quads()
438 if (invDALengthSqd > SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads()
DGrOvalRenderer.cpp1649 SK_ScalarNearlyZero, // we're using inversesqrt() in shader, so can't be exactly 0 in onPrepareDraws()
1650 SK_ScalarNearlyZero, in onPrepareDraws()
1664 verts->fOffset = SkPoint::Make(SK_ScalarNearlyZero, yOuterOffsets[i]); in onPrepareDraws()
1671 verts->fOffset = SkPoint::Make(SK_ScalarNearlyZero, yOuterOffsets[i]); in onPrepareDraws()
/external/skia/include/core/
DSkScalar.h218 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro
221 SkScalar tolerance = SK_ScalarNearlyZero) {
227 SkScalar tolerance = SK_ScalarNearlyZero) {
DSkPoint.h252 return (dx*dx + dy*dy) > (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in CanNormalize()
DSkMatrix.h105 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const;
111 bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
/external/skia/tests/
DMatrixTest.cpp189 …ORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, rotate.getMinScale(), SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
190 …ORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, rotate.getMaxScale(), SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
193 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
194 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
450 SkScalar tolerance = SK_ScalarNearlyZero) { in scalar_nearly_equal_relative()
DCanvasTest.cpp149 SkPoint pt2 = { 0, SK_ScalarNearlyZero }; in TestNearlyZeroLengthPath()
151 SkPoint pt4 = { SkIntToScalar(1), SK_ScalarNearlyZero/2 }; in TestNearlyZeroLengthPath()
DPathTest.cpp119 p1 = SkPoint::Make(1.f - SK_ScalarNearlyZero, 1.f); in make_path_crbugskia2820()
120 p2 = SkPoint::Make(1.f, 1.f + SK_ScalarNearlyZero); in make_path_crbugskia2820()
/external/skia/include/utils/
DSkMatrix44.h425 bool preserves2dAxisAlignment(SkMScalar epsilon = SK_ScalarNearlyZero) const;
/external/skia/src/effects/
DSkLightingImageFilter.cpp70 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize()