Home
last modified time | relevance | path

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

/external/skia/tests/
DSkColor4fTest.cpp21 static bool nearly_equal(float a, float b, float tol = kTolerance) { in nearly_equal() function
64 REPORTER_ASSERT(reporter, nearly_equal(pm4.r(), c4.fA * c4.fR)); in DEF_TEST()
65 REPORTER_ASSERT(reporter, nearly_equal(pm4.g(), c4.fA * c4.fG)); in DEF_TEST()
66 REPORTER_ASSERT(reporter, nearly_equal(pm4.b(), c4.fA * c4.fB)); in DEF_TEST()
DMatrix44Test.cpp56 static bool nearly_equal(const SkMatrix44& a, const SkMatrix44& b) { in nearly_equal() function
70 return nearly_equal(m, identity); in is_identity()
391 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
404 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
415 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
428 REPORTER_ASSERT(reporter, nearly_equal(expected, inverse)); in test_invert()
469 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_transpose()
518 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
521 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
524 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
[all …]
DGeometryTest.cpp12 static bool nearly_equal(const SkPoint& a, const SkPoint& b) { in nearly_equal() function
226 REPORTER_ASSERT(reporter, nearly_equal(cubic[i], dst[i])); in DEF_TEST()
DMatrixTest.cpp19 static bool nearly_equal(const SkMatrix& a, const SkMatrix& b) { in nearly_equal() function
71 return nearly_equal(m, identity); in is_identity()
804 return nearly_equal(matrix, remaining); in check_decompScale()
DPathTest.cpp3840 static bool nearly_equal(const SkRect& a, const SkRect& b) { in nearly_equal() function
3876 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
3882 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
4749 REPORTER_ASSERT(reporter, nearly_equal(tight, tight2)); in DEF_TEST()
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp191 static inline bool nearly_equal(double x, double y, in nearly_equal() function
487 if (nearly_equal(x1, x2, segment.fNearlyZeroScaled, true)) { in precomputation_for_row()
543 nearly_equal(segment.fP0T.x(), p1, segment.fNearlyZeroScaled, true)) || in calculate_side_of_quad()
545 nearly_equal(segment.fP2T.x(), p1, segment.fNearlyZeroScaled, true))) { in calculate_side_of_quad()
549 nearly_equal(segment.fP2T.x(), p2, segment.fNearlyZeroScaled, true)) || in calculate_side_of_quad()
551 nearly_equal(segment.fP0T.x(), p2, segment.fNearlyZeroScaled, true))) { in calculate_side_of_quad()