24 if (
alpha == kPremul_SkAlphaType)
26 return color == kBGRA_8888_SkColorType
27 ? (uint32_t(kCGImageAlphaPremultipliedFirst)
28 | uint32_t(kCGBitmapByteOrder32Little))
29 : (uint32_t(kCGImageAlphaPremultipliedLast) | uint32_t(kCGBitmapByteOrder32Big));
33 assert(
alpha == kOpaque_SkAlphaType);
34 return color == kBGRA_8888_SkColorType
35 ? (uint32_t(kCGImageAlphaNoneSkipFirst) | uint32_t(kCGBitmapByteOrder32Little))
36 : (uint32_t(kCGImageAlphaNoneSkipLast) | uint32_t(kCGBitmapByteOrder32Big));
constexpr double alpha[nDetails]
constexpr uint32_t SkiaToCGBitmapType(SkColorType color, SkAlphaType alpha)