mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 01:46:46 +02:00
A video element should record video as video, not as generic external bitmap content. Add VideoFrameSource and a dedicated display-list command so the display-list player receives the current Media::VideoFrame directly. The Skia player can now upload YUV pixmaps from the frame when a GPU context is available, without teaching the ordinary ImmutableBitmap image cache about media formats. If GPU upload is unavailable, the fallback explicitly converts the frame through YUVData::to_bitmap(). This gives video painting a clear extension point for future frame backends, such as hardware frames or other planar formats, while keeping bitmap drawing focused on immutable pixel snapshots.
140 KiB
140 KiB