• Home
  • Raw
  • Download

Lines Matching refs:bmp

98     static SkBitmap bmp;  in make_src_bitmap()  local
99 if (bmp.isNull()) { in make_src_bitmap()
100 bmp.allocN32Pixels(DEV_W, DEV_H); in make_src_bitmap()
101 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels()); in make_src_bitmap()
104 …SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixe… in make_src_bitmap()
109 return bmp; in make_src_bitmap()
124 SkBitmap bmp = make_src_bitmap(); in fill_src_texture() local
125 bmp.lockPixels(); in fill_src_texture()
126 texture->writePixels(0, 0, DEV_W, DEV_H, kSkia8888_GrPixelConfig, bmp.getPixels(), in fill_src_texture()
127 bmp.rowBytes()); in fill_src_texture()
128 bmp.unlockPixels(); in fill_src_texture()
335 SkBitmap bmp; in test_readpixels() local
336 init_bitmap(&bmp, srcRect, bmi, in test_readpixels()
341 bool startsWithPixels = !bmp.isNull(); in test_readpixels()
343 fill_dst_bmp_with_init_data(&bmp); in test_readpixels()
346 bool success = canvas->readPixels(&bmp, srcRect.fLeft, srcRect.fTop); in test_readpixels()
358 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop, in test_readpixels()
363 REPORTER_ASSERT(reporter, bmp.isNull()); in test_readpixels()
414 SkBitmap bmp; in test_readpixels_texture() local
415 init_bitmap(&bmp, srcRect, bmi, in test_readpixels_texture()
420 bool startsWithPixels = !bmp.isNull(); in test_readpixels_texture()
423 fill_dst_bmp_with_init_data(&bmp); in test_readpixels_texture()
432 bmp.lockPixels(); in test_readpixels_texture()
433 bool success = texture->readPixels(srcRect.fLeft, srcRect.fTop, bmp.width(), in test_readpixels_texture()
434 bmp.height(), dstConfig, bmp.getPixels(), in test_readpixels_texture()
435 bmp.rowBytes(), flags); in test_readpixels_texture()
436 bmp.unlockPixels(); in test_readpixels_texture()
437 check_read(reporter, bmp, srcRect.fLeft, srcRect.fTop, in test_readpixels_texture()