Lines Matching refs:bm1
56 static bool equal(const SkBitmap& bm1, const SkBitmap& bm2) {
57 if (bm1.width() != bm2.width() ||
58 bm1.height() != bm2.height() ||
59 bm1.config() != bm2.config()) {
63 size_t pixelBytes = bm1.width() * bm1.bytesPerPixel();
64 for (int y = 0; y < bm1.height(); y++) {
65 if (memcmp(bm1.getAddr(0, y), bm2.getAddr(0, y), pixelBytes)) {