/external/skia/modules/sksg/src/ |
D | SkSGRect.cpp | 60 return fRRect.contains(SkRect::MakeLTRB(p.x() - SK_ScalarNearlyZero, in onContains() 61 p.y() - SK_ScalarNearlyZero, in onContains() 62 p.x() + SK_ScalarNearlyZero, in onContains() 63 p.y() + SK_ScalarNearlyZero)); in onContains()
|
/external/skia/tests/ |
D | GrPathUtilsTest.cpp | 31 fabsf(inflectT[0] - inflectT[1]) >= SK_ScalarNearlyZero); in check_cubic_convex_180() 44 SkASSERT(rads < SK_ScalarPI + SK_ScalarNearlyZero); in check_cubic_convex_180() 47 if (totalRotation < SK_ScalarPI - SK_ScalarNearlyZero) { in check_cubic_convex_180() 52 if (totalRotation > SK_ScalarPI + SK_ScalarNearlyZero) { in check_cubic_convex_180()
|
D | WangsFormulaTest.cpp | 195 float epsilon = std::ldexp(SK_ScalarNearlyZero, level * 2); in DEF_TEST() 391 REPORTER_ASSERT(r, d <= (1.f / kPrecision) + SK_ScalarNearlyZero); in DEF_TEST() 468 REPORTER_ASSERT(r, d <= (1.0 / kPrecision) + SK_ScalarNearlyZero); in DEF_TEST()
|
/external/skia/src/gpu/geometry/ |
D | GrPathUtils.cpp | 153 || SkScalarNearlyZero((float)det, SK_ScalarNearlyZero * SK_ScalarNearlyZero)) { in set() 328 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads() 329 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads() 338 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads() 393 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint() 394 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint() 403 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint() 415 bool doQuads = SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero || in convert_noninflect_cubic_to_quads_with_constraint() 416 SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero; in convert_noninflect_cubic_to_quads_with_constraint() 419 if (invDALengthSqd > SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
|
/external/skqp/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.cpp | 217 SkASSERT(!SkScalarNearlyZero(twoSigmaSqrd, SK_ScalarNearlyZero)); in fill_in_1D_gaussian_kernel_with_stride() 244 if (SkScalarNearlyZero(twoSigmaSqrdX, SK_ScalarNearlyZero) || in fill_in_2D_gaussian_kernel() 245 SkScalarNearlyZero(twoSigmaSqrdY, SK_ScalarNearlyZero)) { in fill_in_2D_gaussian_kernel() 250 if (SkScalarNearlyZero(twoSigmaSqrdX, SK_ScalarNearlyZero) && in fill_in_2D_gaussian_kernel() 251 SkScalarNearlyZero(twoSigmaSqrdY, SK_ScalarNearlyZero)) { in fill_in_2D_gaussian_kernel() 255 } else if (SkScalarNearlyZero(twoSigmaSqrdX, SK_ScalarNearlyZero)) { in fill_in_2D_gaussian_kernel() 262 SkASSERT(SkScalarNearlyZero(twoSigmaSqrdY, SK_ScalarNearlyZero)); in fill_in_2D_gaussian_kernel()
|
/external/skqp/src/core/ |
D | SkPoint3.cpp | 23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
|
D | SkBitmapController.cpp | 48 if (invScaleX >= 1 - SK_ScalarNearlyZero || invScaleY >= 1 - SK_ScalarNearlyZero) { in processHighRequest()
|
D | SkPoint.cpp | 65 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
|
D | SkPointPriv.h | 33 return (dx*dx + dy*dy) > (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in CanNormalize()
|
D | SkRRectPriv.h | 37 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
|
/external/skia/src/core/ |
D | SkPoint3.cpp | 23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
|
D | SkRRectPriv.h | 33 static bool IsNearlySimpleCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero); 41 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
|
/external/skia/include/core/ |
D | SkScalar.h | 134 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro 137 SkScalar tolerance = SK_ScalarNearlyZero) { 143 SkScalar tolerance = SK_ScalarNearlyZero) {
|
/external/skqp/src/gpu/ |
D | GrPathUtils.cpp | 234 || SkScalarNearlyZero((float)det, SK_ScalarNearlyZero * SK_ScalarNearlyZero)) { in set() 409 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads() 410 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads() 419 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads() 474 if (SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint() 475 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint() 484 if (SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint() 496 bool doQuads = SkPointPriv::LengthSqd(dc) < SK_ScalarNearlyZero || in convert_noninflect_cubic_to_quads_with_constraint() 497 SkPointPriv::LengthSqd(ab) < SK_ScalarNearlyZero; in convert_noninflect_cubic_to_quads_with_constraint() 500 if (invDALengthSqd > SK_ScalarNearlyZero) { in convert_noninflect_cubic_to_quads_with_constraint()
|
/external/skqp/include/core/ |
D | SkScalar.h | 154 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro 157 SkScalar tolerance = SK_ScalarNearlyZero) { 163 SkScalar tolerance = SK_ScalarNearlyZero) {
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCStrokeGeometry.cpp | 148 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue() || // p0 ~= p1 in quadraticTo() 149 (tan1.abs() < SK_ScalarNearlyZero).allTrue()) { // p1 ~= p2 in quadraticTo() 264 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 in cubicTo() 267 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 ~= p2 in cubicTo() 272 if ((tan1.abs() < SK_ScalarNearlyZero).allTrue()) { // p2 ~= p3 in cubicTo() 275 if ((tan1.abs() < SK_ScalarNearlyZero).allTrue() || // p1 ~= p2 ~= p3 in cubicTo()
|
/external/skia/src/utils/ |
D | SkPolyUtils.cpp | 27 constexpr SkScalar kCrossTolerance = SK_ScalarNearlyZero * SK_ScalarNearlyZero; 333 if (inset < -SK_ScalarNearlyZero || !SkScalarIsFinite(inset)) { in SkInsetConvexPolygon() 338 if (inset <= SK_ScalarNearlyZero) { in SkInsetConvexPolygon() 634 SkASSERT(q0.fX <= p1.fX + SK_ScalarNearlyZero); in intersect() 1474 if (n*v0.cross(w0) < SK_ScalarNearlyZero) { in point_in_triangle() 1479 if (n*v1.cross(w1) < SK_ScalarNearlyZero) { in point_in_triangle() 1485 if (n*v2.cross(w2) < SK_ScalarNearlyZero) { in point_in_triangle() 1593 if (winding*v0.cross(v1) > SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in reclassify_vertex() 1638 if (winding*v0.cross(v1) > SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in SkTriangulateSimplePolygon()
|
/external/skqp/src/utils/ |
D | SkPolyUtils.cpp | 27 constexpr SkScalar kCrossTolerance = SK_ScalarNearlyZero * SK_ScalarNearlyZero; 604 SkASSERT(q0.fX <= p1.fX + SK_ScalarNearlyZero); in intersect() 1426 if (n*v0.cross(w0) < SK_ScalarNearlyZero) { in point_in_triangle() 1431 if (n*v1.cross(w1) < SK_ScalarNearlyZero) { in point_in_triangle() 1437 if (n*v2.cross(w2) < SK_ScalarNearlyZero) { in point_in_triangle() 1545 if (winding*v0.cross(v1) > SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in reclassify_vertex() 1590 if (winding*v0.cross(v1) > SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in SkTriangulateSimplePolygon()
|
/external/skqp/src/gpu/ops/ |
D | GrAAHairLinePathRenderer.cpp | 559 if (toDevice && SkPointPriv::LengthSqd(ab) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad() 562 if (toDevice && SkPointPriv::LengthSqd(cb) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad() 586 if (toDevice && SkPointPriv::LengthSqd(ac) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
|
/external/skia/modules/skparagraph/include/ |
D | TextStyle.h | 21 static inline bool nearlyZero(SkScalar x, SkScalar tolerance = SK_ScalarNearlyZero) { 28 static inline bool nearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance = SK_ScalarNearlyZero) {
|
/external/skia/src/gpu/ops/ |
D | GrAAHairLinePathRenderer.cpp | 561 if (SkPointPriv::LengthSqd(ab) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad() 564 if (SkPointPriv::LengthSqd(cb) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad() 588 if (toDevice && SkPointPriv::LengthSqd(ac) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
|
/external/skia/src/gpu/tessellate/ |
D | GrStrokeTessellator.h | 98 localStrokeWidth = SK_ScalarNearlyZero; in GetLocalStrokeWidth()
|
/external/skqp/src/effects/ |
D | SkDiscretePathEffect.cpp | 22 if (segLength <= SK_ScalarNearlyZero) { in Make()
|
/external/skia/modules/skottie/src/effects/ |
D | BrightnessContrastEffect.cpp | 190 ? 1 / std::max(1 - contrast, SK_ScalarNearlyZero) in makeLegacyCF()
|
/external/skia/src/effects/ |
D | SkDiscretePathEffect.cpp | 22 if (segLength <= SK_ScalarNearlyZero) { in Make()
|