Home | History | Annotate | Download | only in ports

Lines Matching defs:bitmap

72     SkBitmap bitmap;
73 if (!bitmap.tryAllocPixels(bitmapOrig.info().makeColorType(kBGRA_8888_SkColorType)) ||
74 !bitmapOrig.readPixels(bitmap.info(), bitmap.getPixels(), bitmap.rowBytes(), 0, 0))
80 if (kPremul_SkAlphaType == bitmap.alphaType()) {
81 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap.getPixels());
82 for (int y = 0; y < bitmap.height(); ++y) {
83 for (int x = 0; x < bitmap.width(); ++x) {
84 uint8_t* bytes = pixels + y * bitmap.rowBytes() + x * bitmap.bytesPerPixel();
93 void* pixels = bitmap.getPixels();
94 size_t rowBytes = bitmap.rowBytes();
99 rowBytes = SkAlign4(bitmap.width() * 3);
100 pixelStorage.reset(rowBytes * bitmap.height());
101 for (int y = 0; y < bitmap.height(); y++) {
103 for (int x = 0; x < bitmap.width(); x++) {
104 uint32_t bgra = *bitmap.getAddr32(x, y);
181 const UINT width = bitmap.width();
182 const UINT height = bitmap.height();