| 45 | } |
| 46 | |
| 47 | Valdi::BitmapInfo toBitmapInfo(const SkImageInfo& info) { |
| 48 | auto colorType = toValdiColorType(info.colorType()); |
| 49 | auto alphaType = toValdiAlphaType(info.alphaType()); |
| 50 | auto rowByteSize = info.minRowBytes(); |
| 51 | |
| 52 | return Valdi::BitmapInfo(info.width(), info.height(), colorType, alphaType, rowByteSize); |
| 53 | } |
| 54 | |
| 55 | SkColorType toSkiaColorType(Valdi::ColorType colorType) { |
| 56 | switch (colorType) { |
no test coverage detected