Lines Matching refs:bmp
98 static SkBitmap bmp;
99 if (bmp.isNull()) {
100 bmp.allocN32Pixels(DEV_W, DEV_H);
101 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels());
104 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
108 bmp.setImmutable();
110 return bmp.asImage();
333 SkBitmap bmp;
334 init_bitmap(&bmp, srcRect, tightRB, gReadPixelsConfigs[c].fColorType,
339 bool startsWithPixels = !bmp.isNull();
341 fill_dst_bmp_with_init_data(&bmp);
344 bool success = surface->readPixels(bmp, srcRect.fLeft, srcRect.fTop);
349 bool expectSuccess = read_should_succeed(srcRect, bmp.info(), surfaceInfo);
354 bmp.info().colorType(), bmp.info().alphaType());
359 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop, success,
364 REPORTER_ASSERT(reporter, bmp.isNull());