Home | History | Annotate | Download | only in bench

Lines Matching defs:bm2

33 static bool equal(const SkBitmap& bm1, const SkBitmap& bm2) {
34 if (bm1.width() != bm2.width() ||
35 bm1.height() != bm2.height() ||
36 bm1.config() != bm2.config()) {
42 if (memcmp(bm1.getAddr(0, y), bm2.getAddr(0, y), pixelBytes)) {
147 SkBitmap bm2;
149 bm2.setConfig(bm.config(), bm.width(), bm.height());
150 bm2.allocPixels();
151 erase(bm2);
153 SkCanvas canvas(bm2);
156 if (!equal(bm, bm2)) {