Home
last modified time | relevance | path

Searched refs:nearly_equal (Results 1 – 17 of 17) sorted by relevance

/external/skia/src/ports/
DSkNDKConversions.cpp72 static bool nearly_equal(float a, float b) { in nearly_equal() function
76 static bool nearly_equal(const skcms_TransferFunction& x, const skcms_TransferFunction& y) { in nearly_equal() function
77 return nearly_equal(x.g, y.g) in nearly_equal()
78 && nearly_equal(x.a, y.a) in nearly_equal()
79 && nearly_equal(x.b, y.b) in nearly_equal()
80 && nearly_equal(x.c, y.c) in nearly_equal()
81 && nearly_equal(x.d, y.d) in nearly_equal()
82 && nearly_equal(x.e, y.e) in nearly_equal()
83 && nearly_equal(x.f, y.f); in nearly_equal()
86 static bool nearly_equal(const skcms_Matrix3x3& a, const skcms_Matrix3x3& b) { in nearly_equal() function
[all …]
/external/skqp/src/core/
DSkICC.cpp196 static bool nearly_equal(float x, float y) { in nearly_equal() function
208 static bool nearly_equal(const skcms_TransferFunction& u, in nearly_equal() function
210 return nearly_equal(u.g, v.g) in nearly_equal()
211 && nearly_equal(u.a, v.a) in nearly_equal()
212 && nearly_equal(u.b, v.b) in nearly_equal()
213 && nearly_equal(u.c, v.c) in nearly_equal()
214 && nearly_equal(u.d, v.d) in nearly_equal()
215 && nearly_equal(u.e, v.e) in nearly_equal()
216 && nearly_equal(u.f, v.f); in nearly_equal()
219 static bool nearly_equal(const skcms_Matrix3x3& u, const skcms_Matrix3x3& v) { in nearly_equal() function
[all …]
/external/skia/src/core/
DSkICC.cpp196 static bool nearly_equal(float x, float y) { in nearly_equal() function
208 static bool nearly_equal(const skcms_TransferFunction& u, in nearly_equal() function
210 return nearly_equal(u.g, v.g) in nearly_equal()
211 && nearly_equal(u.a, v.a) in nearly_equal()
212 && nearly_equal(u.b, v.b) in nearly_equal()
213 && nearly_equal(u.c, v.c) in nearly_equal()
214 && nearly_equal(u.d, v.d) in nearly_equal()
215 && nearly_equal(u.e, v.e) in nearly_equal()
216 && nearly_equal(u.f, v.f); in nearly_equal()
219 static bool nearly_equal(const skcms_Matrix3x3& u, const skcms_Matrix3x3& v) { in nearly_equal() function
[all …]
DSkPathBuilder.cpp306 static bool nearly_equal(const SkPoint& a, const SkPoint& b) { in nearly_equal() function
338 } else if (!nearly_equal(fPts.back(), pt)) { in arcTo()
/external/skia/tests/
DNdkEncodeTest.cpp236 static bool nearly_equal(float a, float b) { in nearly_equal() function
240 static bool nearly_equal(const skcms_TransferFunction& x, const skcms_TransferFunction& y) { in nearly_equal() function
241 return nearly_equal(x.g, y.g) in nearly_equal()
242 && nearly_equal(x.a, y.a) in nearly_equal()
243 && nearly_equal(x.b, y.b) in nearly_equal()
244 && nearly_equal(x.c, y.c) in nearly_equal()
245 && nearly_equal(x.d, y.d) in nearly_equal()
246 && nearly_equal(x.e, y.e) in nearly_equal()
247 && nearly_equal(x.f, y.f); in nearly_equal()
250 static bool nearly_equal(const skcms_Matrix3x3& a, const skcms_Matrix3x3& b) { in nearly_equal() function
[all …]
DMatrix44Test.cpp51 static bool nearly_equal(const SkMatrix44& a, const SkMatrix44& b) { in nearly_equal() function
65 return nearly_equal(m, identity); in is_identity()
379 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
392 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
403 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
416 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
456 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_transpose()
504 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
507 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
510 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
[all …]
DGeometryTest.cpp16 static bool nearly_equal(const SkPoint& a, const SkPoint& b) { in nearly_equal() function
639 REPORTER_ASSERT(reporter, nearly_equal(cubic[i], pts[i])); in DEF_TEST()
DMatrixTest.cpp20 static bool nearly_equal(const SkMatrix& a, const SkMatrix& b) { in nearly_equal() function
78 return nearly_equal(m, identity); in is_identity()
788 if (!nearly_equal(original, reconstituted)) { in check_decompScale()
DPathTest.cpp3859 static bool nearly_equal(const SkRect& a, const SkRect& b) { in nearly_equal() function
3895 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
3901 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
5016 REPORTER_ASSERT(reporter, nearly_equal(tight, tight2)); in DEF_TEST()
/external/skqp/tests/
DMatrix44Test.cpp57 static bool nearly_equal(const SkMatrix44& a, const SkMatrix44& b) { in nearly_equal() function
71 return nearly_equal(m, identity); in is_identity()
385 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
398 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
409 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
422 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
462 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_transpose()
510 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
513 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
516 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
[all …]
DGeometryTest.cpp16 static bool nearly_equal(const SkPoint& a, const SkPoint& b) { in nearly_equal() function
380 REPORTER_ASSERT(reporter, nearly_equal(cubic[i], pts[i])); in DEF_TEST()
DMatrixTest.cpp20 static bool nearly_equal(const SkMatrix& a, const SkMatrix& b) { in nearly_equal() function
78 return nearly_equal(m, identity); in is_identity()
824 if (!nearly_equal(original, reconstituted)) { in check_decompScale()
DPathTest.cpp3865 static bool nearly_equal(const SkRect& a, const SkRect& b) { in nearly_equal() function
3901 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
3907 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
4837 REPORTER_ASSERT(reporter, nearly_equal(tight, tight2)); in DEF_TEST()
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp163 static inline bool nearly_equal(double x, double y, in nearly_equal() function
456 if (nearly_equal(x1, x2, segment.fNearlyZeroScaled, true)) { in precomputation_for_row()
512 nearly_equal(segment.fP0T.fX, p1, segment.fNearlyZeroScaled, true)) || in calculate_side_of_quad()
514 nearly_equal(segment.fP2T.fX, p1, segment.fNearlyZeroScaled, true))) { in calculate_side_of_quad()
518 nearly_equal(segment.fP2T.fX, p2, segment.fNearlyZeroScaled, true)) || in calculate_side_of_quad()
520 nearly_equal(segment.fP0T.fX, p2, segment.fNearlyZeroScaled, true))) { in calculate_side_of_quad()
/external/skqp/src/gpu/
DGrDistanceFieldGenFromVector.cpp192 static inline bool nearly_equal(double x, double y, in nearly_equal() function
488 if (nearly_equal(x1, x2, segment.fNearlyZeroScaled, true)) { in precomputation_for_row()
544 nearly_equal(segment.fP0T.x(), p1, segment.fNearlyZeroScaled, true)) || in calculate_side_of_quad()
546 nearly_equal(segment.fP2T.x(), p1, segment.fNearlyZeroScaled, true))) { in calculate_side_of_quad()
550 nearly_equal(segment.fP2T.x(), p2, segment.fNearlyZeroScaled, true)) || in calculate_side_of_quad()
552 nearly_equal(segment.fP0T.x(), p2, segment.fNearlyZeroScaled, true))) { in calculate_side_of_quad()
/external/skia/gm/
Dp3.cpp33 static bool nearly_equal(SkColor4f x, SkColor4f y) { in nearly_equal() function
91 if (nearly_equal(pixel, expected)) { in compare_pixel()
/external/skqp/gm/
Dp3.cpp17 static bool nearly_equal(SkColor4f x, SkColor4f y) { in nearly_equal() function
75 if (nearly_equal(pixel, expected)) { in compare_pixel()