Home
last modified time | relevance | path

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

/external/skia/tests/
DSkColor4fTest.cpp20 static bool nearly_equal(float a, float b, float tol = kTolerance) { in nearly_equal() function
25 static bool nearly_equal(const SkPM4f a, const SkPM4f& b, float tol = kTolerance) { in nearly_equal() function
27 if (!nearly_equal(a.fVec[i], b.fVec[i], tol)) { in nearly_equal()
73 REPORTER_ASSERT(reporter, nearly_equal(pm4.fVec[SK_R_INDEX], c4.fA * c4.fR)); in DEF_TEST()
74 REPORTER_ASSERT(reporter, nearly_equal(pm4.fVec[SK_G_INDEX], c4.fA * c4.fG)); in DEF_TEST()
75 REPORTER_ASSERT(reporter, nearly_equal(pm4.fVec[SK_B_INDEX], c4.fA * c4.fB)); in DEF_TEST()
132 REPORTER_ASSERT(reporter, nearly_equal(c0, c1, tolerance)); in compare_spans()
226 if (!nearly_equal(r4f, r32_4f, kTolerance)) { in compare_procs()
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()
501 REPORTER_ASSERT(reporter, nearly_equal(a, b)); in test_set_row_col_major()
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()
[all …]
DGeometryTest.cpp12 static bool nearly_equal(const SkPoint& a, const SkPoint& b) { in nearly_equal() function
187 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()
798 return nearly_equal(matrix, remaining); in check_decompScale()
DPathTest.cpp3365 static bool nearly_equal(const SkRect& a, const SkRect& b) { in nearly_equal() function
3401 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()
3407 REPORTER_ASSERT(reporter, nearly_equal(p.getBounds(), oval)); in test_arcTo()