/third_party/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()
|
/third_party/flutter/skia/modules/sksg/src/ |
D | SkSGRect.cpp | 62 return fRRect.contains(SkRect::MakeLTRB(p.x() - SK_ScalarNearlyZero, in onContains() 63 p.y() - SK_ScalarNearlyZero, in onContains() 64 p.x() + SK_ScalarNearlyZero, in onContains() 65 p.y() + SK_ScalarNearlyZero)); in onContains()
|
/third_party/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 | 197 float epsilon = std::ldexp(SK_ScalarNearlyZero, level * 2); in DEF_TEST() 397 REPORTER_ASSERT(r, d <= (1.f / kPrecision) + SK_ScalarNearlyZero); in DEF_TEST() 473 REPORTER_ASSERT(r, d <= (1.0 / kPrecision) + SK_ScalarNearlyZero); in DEF_TEST()
|
/third_party/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()
|
/third_party/flutter/skia/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()
|
/third_party/flutter/skia/src/core/ |
D | SkPoint3.cpp | 23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
|
D | SkRRectPriv.h | 37 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
|
/third_party/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);
|
D | SkDrawShadowInfo.h | 72 constexpr SkScalar kMaxZRatio = 64/SK_ScalarNearlyZero; in GetDirectionalParams()
|
/third_party/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) {
|
/third_party/flutter/skia/src/gpu/geometry/ |
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()
|
D | GrQuadUtils.cpp | 183 return ((quad.x(0) + SK_ScalarNearlyZero) < quad.x(2)) && in is_simple_rect() 184 ((quad.y(0) + SK_ScalarNearlyZero) < quad.y(1)); in is_simple_rect()
|
/third_party/flutter/skia/include/core/ |
D | SkScalar.h | 147 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro 150 SkScalar tolerance = SK_ScalarNearlyZero) { 156 SkScalar tolerance = SK_ScalarNearlyZero) {
|
/third_party/flutter/skia/src/gpu/ccpr/ |
D | GrCCStrokeGeometry.cpp | 147 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue() || // p0 ~= p1 in quadraticTo() 148 (tan1.abs() < SK_ScalarNearlyZero).allTrue()) { // p1 ~= p2 in quadraticTo() 263 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 in cubicTo() 266 if ((tan0.abs() < SK_ScalarNearlyZero).allTrue()) { // p0 ~= p1 ~= p2 in cubicTo() 271 if ((tan1.abs() < SK_ScalarNearlyZero).allTrue()) { // p2 ~= p3 in cubicTo() 274 if ((tan1.abs() < SK_ScalarNearlyZero).allTrue() || // p1 ~= p2 ~= p3 in cubicTo()
|
/third_party/skia/src/effects/ |
D | SkDiscretePathEffect.cpp | 73 SkASSERT(segLength > SK_ScalarNearlyZero); in SkDiscretePathEffectImpl() 171 if (segLength <= SK_ScalarNearlyZero) { in Make()
|
/third_party/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()
|
/third_party/flutter/skia/src/utils/ |
D | SkPolyUtils.cpp | 27 constexpr SkScalar kCrossTolerance = SK_ScalarNearlyZero * SK_ScalarNearlyZero; 322 if (inset < -SK_ScalarNearlyZero || !SkScalarIsFinite(inset)) { in SkInsetConvexPolygon() 327 if (inset <= SK_ScalarNearlyZero) { in SkInsetConvexPolygon() 618 SkASSERT(q0.fX <= p1.fX + SK_ScalarNearlyZero); in intersect() 1458 if (n*v0.cross(w0) < SK_ScalarNearlyZero) { in point_in_triangle() 1463 if (n*v1.cross(w1) < SK_ScalarNearlyZero) { in point_in_triangle() 1469 if (n*v2.cross(w2) < SK_ScalarNearlyZero) { in point_in_triangle() 1577 if (winding*v0.cross(v1) > SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in reclassify_vertex() 1622 if (winding*v0.cross(v1) > SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in SkTriangulateSimplePolygon()
|
/third_party/flutter/skia/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()
|
/third_party/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) {
|
/third_party/skia/src/gpu/ops/ |
D | AAHairLinePathRenderer.cpp | 571 if (SkPointPriv::LengthSqd(ab) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad() 574 if (SkPointPriv::LengthSqd(cb) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad() 598 if (toDevice && SkPointPriv::LengthSqd(ac) <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in bloat_quad()
|
/third_party/skia/src/gpu/tessellate/ |
D | StrokeTessellator.h | 102 localStrokeWidth = SK_ScalarNearlyZero; in GetLocalStrokeWidth()
|
/third_party/flutter/skia/src/effects/ |
D | SkDiscretePathEffect.cpp | 22 if (segLength <= SK_ScalarNearlyZero) { in Make()
|
/third_party/skia/modules/skottie/src/effects/ |
D | BrightnessContrastEffect.cpp | 192 ? 1 / std::max(1 - contrast, SK_ScalarNearlyZero) in makeLegacyCF()
|