Home | History | Annotate | Download | only in ports

Lines Matching refs:bm

13 static void convertGL32_to_Mac32(uint32_t dst[], const SkBitmap& bm) {
14 memcpy(dst, bm.getPixels(), bm.getSize());
17 uint32_t* stop = dst + (bm.getSize() >> 2);
18 const uint8_t* src = (const uint8_t*)bm.getPixels();
25 static void convert565_to_32(uint32_t dst[], const SkBitmap& bm) {
26 for (int y = 0; y < bm.height(); y++) {
27 const uint16_t* src = bm.getAddr16(0, y);
28 const uint16_t* stop = src + bm.width();
67 static CGImageRef bitmap2imageref(const SkBitmap& bm) {
73 bm.getPixels(),
74 bm.getSize(),
79 switch (bm.config()) {
101 return CGImageCreate(bm.width(), bm.height(), bitsPerComp, bitsPerPixel,
102 bm.rowBytes(), cs, info, data,
118 SkBitmap bm;
120 this->copyTo(&bm, kARGB_8888_Config);
122 bm = *this;
124 bm.lockPixels();
126 CGImageRef image = bitmap2imageref(bm);
130 rect.size.width = bm.width();
131 rect.size.height = bm.height();