Home
last modified time | relevance | path

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

1234

/external/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()
/external/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.cpp195 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/
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()
/external/skqp/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()
/external/skqp/src/core/
DSkPoint3.cpp23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
DSkBitmapController.cpp48 if (invScaleX >= 1 - SK_ScalarNearlyZero || invScaleY >= 1 - SK_ScalarNearlyZero) { in processHighRequest()
DSkPoint.cpp65 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
DSkPointPriv.h33 return (dx*dx + dy*dy) > (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in CanNormalize()
DSkRRectPriv.h37 static bool AllCornersCircular(const SkRRect& rr, SkScalar tolerance = SK_ScalarNearlyZero);
/external/skia/src/core/
DSkPoint3.cpp23 return *lengthSquared <= (SK_ScalarNearlyZero * SK_ScalarNearlyZero); in is_length_nearly_zero()
DSkRRectPriv.h33 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/
DSkScalar.h134 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro
137 SkScalar tolerance = SK_ScalarNearlyZero) {
143 SkScalar tolerance = SK_ScalarNearlyZero) {
/external/skqp/src/gpu/
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()
/external/skqp/include/core/
DSkScalar.h154 #define SK_ScalarNearlyZero (SK_Scalar1 / (1 << 12)) macro
157 SkScalar tolerance = SK_ScalarNearlyZero) {
163 SkScalar tolerance = SK_ScalarNearlyZero) {
/external/skqp/src/gpu/ccpr/
DGrCCStrokeGeometry.cpp148 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/
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()
/external/skqp/src/utils/
DSkPolyUtils.cpp27 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/
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()
/external/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) {
/external/skia/src/gpu/ops/
DGrAAHairLinePathRenderer.cpp561 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/
DGrStrokeTessellator.h98 localStrokeWidth = SK_ScalarNearlyZero; in GetLocalStrokeWidth()
/external/skqp/src/effects/
DSkDiscretePathEffect.cpp22 if (segLength <= SK_ScalarNearlyZero) { in Make()
/external/skia/modules/skottie/src/effects/
DBrightnessContrastEffect.cpp190 ? 1 / std::max(1 - contrast, SK_ScalarNearlyZero) in makeLegacyCF()
/external/skia/src/effects/
DSkDiscretePathEffect.cpp22 if (segLength <= SK_ScalarNearlyZero) { in Make()

1234