Searched refs:SK_ScalarNearlyZero (Results 1 – 17 of 17) sorted by relevance
/external/skia/src/core/ |
D | SkPoint3.cpp | 23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
|
D | SkScalerContext.cpp | 734 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()
|
D | SkPoint.cpp | 95 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in isLengthNearlyZero()
|
D | SkGeometry.cpp | 585 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()
|
D | SkMatrix.cpp | 195 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()
|
D | SkPath.cpp | 2339 if (!SkScalarNearlyZero(fLastVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange() 2340 !SkScalarNearlyZero(curVec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero) && in directionChange()
|
D | SkStroke.cpp | 410 && fPrevPt.equalsWithinTolerance(currPt, SK_ScalarNearlyZero * fInvResScale)) { in lineTo()
|
/external/skia/src/gpu/ |
D | GrPathUtils.cpp | 228 || 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()
|
D | GrOvalRenderer.cpp | 1649 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/ |
D | SkScalar.h | 218 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro 221 SkScalar tolerance = SK_ScalarNearlyZero) { 227 SkScalar tolerance = SK_ScalarNearlyZero) {
|
D | SkPoint.h | 252 return (dx*dx + dy*dy) > (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in CanNormalize()
|
D | SkMatrix.h | 105 bool isSimilarity(SkScalar tol = SK_ScalarNearlyZero) const; 111 bool preservesRightAngles(SkScalar tol = SK_ScalarNearlyZero) const;
|
/external/skia/tests/ |
D | MatrixTest.cpp | 189 …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()
|
D | CanvasTest.cpp | 149 SkPoint pt2 = { 0, SK_ScalarNearlyZero }; in TestNearlyZeroLengthPath() 151 SkPoint pt4 = { SkIntToScalar(1), SK_ScalarNearlyZero/2 }; in TestNearlyZeroLengthPath()
|
D | PathTest.cpp | 119 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/ |
D | SkMatrix44.h | 425 bool preserves2dAxisAlignment(SkMScalar epsilon = SK_ScalarNearlyZero) const;
|
/external/skia/src/effects/ |
D | SkLightingImageFilter.cpp | 70 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize()
|