Searched refs:almost_equals (Results 1 – 2 of 2) sorted by relevance
/external/skqp/tests/ |
D | EncodeTest.cpp | 97 static inline bool almost_equals(SkPMColor a, SkPMColor b, int tolerance) { in almost_equals() function 117 static inline bool almost_equals(const SkBitmap& a, const SkBitmap& b, int tolerance) { in almost_equals() function 125 if (!almost_equals(*a.getAddr32(x, y), *b.getAddr32(x, y), tolerance)) { in almost_equals() 171 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST() 172 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60)); in DEF_TEST() 285 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST() 286 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 0)); in DEF_TEST() 337 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST() 338 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 90)); in DEF_TEST() 339 REPORTER_ASSERT(r, almost_equals(bm2, bm3, 50)); in DEF_TEST()
|
/external/skia/tests/ |
D | EncodeTest.cpp | 102 static inline bool almost_equals(SkPMColor a, SkPMColor b, int tolerance) { in almost_equals() function 122 static inline bool almost_equals(const SkBitmap& a, const SkBitmap& b, int tolerance) { in almost_equals() function 130 if (!almost_equals(*a.getAddr32(x, y), *b.getAddr32(x, y), tolerance)) { in almost_equals() 176 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60)); in DEF_TEST() 177 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60)); in DEF_TEST() 290 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST() 291 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 0)); in DEF_TEST() 390 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0)); in DEF_TEST() 391 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 90)); in DEF_TEST() 392 REPORTER_ASSERT(r, almost_equals(bm2, bm3, 50)); in DEF_TEST()
|