servo/components/compositing
Simon Wülker 384d8f1ff8
Coalesce animated image frame data into a single shared memory region (#37058)
This makes servo use less file descriptors for animated images and
avoids the crash described in
https://github.com/servo/servo/issues/36792.

Doing this also forces the end users to be more explicit about whether
they want to deal with all image frames or just the first one.
Previously, `Image::bytes` silently returned only the data for the first
frame. With this change there's now a `frames` method which returns an
iterator over all frames in the image.

Testing: No tests - this simply reduces the number of fds used. Servo
doesn't currently display animated gifs anyways.
Fixes: https://github.com/servo/servo/issues/36792

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-05-20 20:40:46 +00:00
..
Cargo.toml compositor: Batch all pending scroll event updates into a single transaction (#36974) 2025-05-16 18:26:59 +00:00
compositor.rs Coalesce animated image frame data into a single shared memory region (#37058) 2025-05-20 20:40:46 +00:00
lib.rs compositing: Rename WebView to WebViewRenderer (#36574) 2025-04-21 08:47:39 +00:00
touch.rs touch: Fix panic with -Zconvert-mouse-to-touch (#36531) 2025-04-15 09:59:30 +00:00
tracing.rs Implement wheel action in webdriver (#36744) 2025-05-07 08:41:34 +00:00
webview_manager.rs Reduce indexing boilerplate for serializable/transferrable objects. (#36624) 2025-04-22 02:02:02 +00:00
webview_renderer.rs compositor: Batch all pending scroll event updates into a single transaction (#36974) 2025-05-16 18:26:59 +00:00