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