Lines Matching refs:bitmap
53 SkBitmap bitmap;
54 if (!bitmap.tryAllocPixels(bitmapOrig.info().makeColorType(kBGRA_8888_SkColorType)) ||
55 !bitmapOrig.readPixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(), 0, 0))
61 if (kPremul_SkAlphaType == bitmap.alphaType()) {
62 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap.getPixels());
63 for (int y = 0; y < bitmap.height(); ++y) {
64 for (int x = 0; x < bitmap.width(); ++x) {
65 uint8_t* bytes = pixels + y * bitmap.rowBytes() + x * bitmap.bytesPerPixel();
74 void* pixels = bitmap.getPixels();
75 size_t rowBytes = bitmap.rowBytes();
80 rowBytes = SkAlign4(bitmap.width() * 3);
81 pixelStorage.reset(rowBytes * bitmap.height());
82 for (int y = 0; y < bitmap.height(); y++) {
84 for (int x = 0; x < bitmap.width(); x++) {
85 uint32_t bgra = *bitmap.getAddr32(x, y);
162 const UINT width = bitmap.width();
163 const UINT height = bitmap.height();