Lines Matching refs:almost_equals
105 static inline bool almost_equals(SkPMColor a, SkPMColor b, int tolerance) {
125 static inline bool almost_equals(const SkBitmap& a, const SkBitmap& b, int tolerance) {
133 if (!almost_equals(*a.getAddr32(x, y), *b.getAddr32(x, y), tolerance)) {
217 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 60));
218 REPORTER_ASSERT(r, almost_equals(bm1, bm2, 60));
331 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0));
332 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 0));
431 REPORTER_ASSERT(r, almost_equals(bm0, bm1, 0));
432 REPORTER_ASSERT(r, almost_equals(bm0, bm2, 90));
433 REPORTER_ASSERT(r, almost_equals(bm2, bm3, 50));