| 94 | } |
| 95 | |
| 96 | static void releaseBitmap(const void* /*ptr*/, void* context) { |
| 97 | auto bitmap = Valdi::unsafeBridge<Valdi::IBitmap>(context); |
| 98 | bitmap->unlockBytes(); |
| 99 | Valdi::unsafeBridgeRelease(context); |
| 100 | } |
| 101 | |
| 102 | Valdi::Result<sk_sp<SkData>> bitmapToData(const Valdi::Ref<Valdi::IBitmap>& bitmap, |
| 103 | const Valdi::BitmapInfo& info, |
nothing calls this directly
no test coverage detected