| 87 | } |
| 88 | |
| 89 | SkImageInfo toSkiaImageInfo(const Valdi::BitmapInfo& info) { |
| 90 | auto colorType = toSkiaColorType(info.colorType); |
| 91 | auto alphaType = toSkiaAlphaType(info.alphaType); |
| 92 | |
| 93 | return SkImageInfo::Make(info.width, info.height, colorType, alphaType); |
| 94 | } |
| 95 | |
| 96 | static void releaseBitmap(const void* /*ptr*/, void* context) { |
| 97 | auto bitmap = Valdi::unsafeBridge<Valdi::IBitmap>(context); |
no test coverage detected