Searched refs:almost_equals (Results 1 – 1 of 1) sorted by relevance
/external/skia/tests/ |
D | EncodeTest.cpp | 96 static inline bool almost_equals(SkPMColor a, SkPMColor b, int tolerance) { in almost_equals() function 116 static inline bool almost_equals(const SkBitmap& a, const SkBitmap& b, int tolerance) { in almost_equals() function 124 if (!almost_equals(*a.getAddr32(x, y), *b.getAddr32(x, y), tolerance)) { in almost_equals() 170 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST() 171 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60)); in DEF_TEST() 284 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST() 285 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 0)); in DEF_TEST() 336 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST() 337 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 90)); in DEF_TEST() 338 REPORTER_ASSERT(r, almost_equals(bm2, bm3, 45)); in DEF_TEST()
|