Home
last modified time | relevance | path

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

1234

/third_party/skia/modules/sksg/src/
DSkSGRect.cpp60 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/
DSkSGRect.cpp62 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/src/gpu/geometry/
DGrPathUtils.cpp153 || 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/skia/tests/
DGrPathUtilsTest.cpp31 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()
DWangsFormulaTest.cpp197 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/flutter/skia/src/gpu/effects/
DGrMatrixConvolutionEffect.cpp217 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/gpu/geometry/
DGrPathUtils.cpp234 || 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()
DGrQuadUtils.cpp183 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/src/core/
DSkPoint3.cpp23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
DSkRRectPriv.h37 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
DSkMatrix.cpp193 return SkScalarNearlyZero(perp_dot, SK_ScalarNearlyZero*SK_ScalarNearlyZero); in is_degenerate_2x2()
752 SK_ScalarNearlyZero * SK_ScalarNearlyZero * SK_ScalarNearlyZero)) { in sk_inv_determinant()
1464 if (bSqd <= SK_ScalarNearlyZero*SK_ScalarNearlyZero) { in get_scale_factor()
1496 SkASSERT(results[0] >= -SK_ScalarNearlyZero); in get_scale_factor()
1505 SkASSERT(results[1] >= -SK_ScalarNearlyZero); in get_scale_factor()
/third_party/skia/include/core/
DSkScalar.h134 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro
137 SkScalar tolerance = SK_ScalarNearlyZero) {
143 SkScalar tolerance = SK_ScalarNearlyZero) {
/third_party/skia/src/core/
DSkRRectPriv.h33 static bool IsNearlySimpleCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
41 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
DSkPoint3.cpp23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
DSkDrawShadowInfo.h79 constexpr SkScalar kMaxZRatio = 64/SK_ScalarNearlyZero; in GetDirectionalParams()
/third_party/flutter/skia/include/core/
DSkScalar.h147 #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/
DGrCCStrokeGeometry.cpp147 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/
DSkDiscretePathEffect.cpp73 SkASSERT(segLength > SK_ScalarNearlyZero); in SkDiscretePathEffectImpl()
171 if (segLength <= SK_ScalarNearlyZero) { in Make()
/third_party/flutter/skia/src/utils/
DSkPolyUtils.cpp27 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/skia/src/utils/
DSkPolyUtils.cpp27 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/gpu/ops/
DGrAAHairLinePathRenderer.cpp559 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/src/gpu/ops/
DAAHairLinePathRenderer.cpp571 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/modules/skparagraph/include/
DTextStyle.h21 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/tessellate/
DStrokeTessellator.h102 localStrokeWidth = SK_ScalarNearlyZero; in GetLocalStrokeWidth()
/third_party/flutter/skia/tests/
DMatrixTest.cpp195 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, rotate.getMinScale(), SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
196 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, rotate.getMaxScale(), SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
199 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
200 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
434 SkScalar tolerance = SK_ScalarNearlyZero) { in scalar_nearly_equal_relative()

1234