Home | History | Annotate | Download | only in mac

Lines Matching defs:info

13     CGBitmapInfo info = kCGBitmapByteOrder32Big;
17 info |= kCGImageAlphaNoneSkipLast;
20 info |= kCGImageAlphaPremultipliedLast;
23 info |= kCGImageAlphaLast;
26 return info;
30 CGBitmapInfo info = kCGBitmapByteOrder32Little;
34 info |= kCGImageAlphaNoneSkipFirst;
37 info |= kCGImageAlphaPremultipliedFirst;
40 info |= kCGImageAlphaFirst;
43 return info;
46 static void SkBitmap_ReleaseInfo(void* info, const void* pixelData, size_t size) {
47 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info);
53 CGBitmapInfo* info,
64 *info = kCGBitmapByteOrder16Little | kCGImageAlphaNone;
71 *info = ComputeCGAlphaInfo_RGBA(kOpaque_SkAlphaType);
76 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType());
80 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType());
84 *info = kCGBitmapByteOrder16Little;
86 *info |= kCGImageAlphaNoneSkipLast;
88 *info |= kCGImageAlphaPremultipliedLast;
99 CGBitmapInfo* info) {
101 if (!getBitmapInfo(bm, bitsPerComponent, info, &upscaleTo32)) {
120 CGBitmapInfo info SK_INIT_TO_AVOID_WARNING;
122 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info);
146 bitmap->rowBytes(), colorSpace, info, dataRef,
230 CGBitmapInfo info;
231 getBitmapInfo(bitmap, &bitsPerComponent, &info, NULL);
236 cs, info);
250 SK_API bool SkCopyPixelsFromCGImage(const SkImageInfo& info, size_t rowBytes, void* pixels,
254 switch (info.colorType()) {
257 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType());
261 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType());
268 CGContextRef cg = CGBitmapContextCreate(pixels, info.width(), info.height(), bitsPerComponent,
279 CGContextDrawImage(cg, CGRectMake(0, 0, info.width(), info.height()), image);
287 SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
290 if (!tmp.allocPixels(info)) {
294 if (!SkCopyPixelsFromCGImage(tmp.info(), tmp.rowBytes(), tmp.getPixels(), image)) {