Home | History | Annotate | Download | only in mac

Lines Matching refs:bm

51 static bool getBitmapInfo(const SkBitmap& bm,
59 switch (bm.colorType()) {
76 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType());
80 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType());
85 if (bm.isOpaque()) {
97 static SkBitmap* prepareForImageRef(const SkBitmap& bm,
101 if (!getBitmapInfo(bm, bitsPerComponent, info, &upscaleTo32)) {
110 bm.copyTo(copy, kN32_SkColorType);
112 copy = new SkBitmap(bm);
117 CGImageRef SkCreateCGImageRefWithColorspace(const SkBitmap& bm,
122 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info);
156 void SkCGDrawBitmap(CGContextRef cg, const SkBitmap& bm, float x, float y) {
157 CGImageRef img = SkCreateCGImageRef(bm);
160 CGRect r = CGRectMake(0, 0, bm.width(), bm.height());