servo/components/webgl
sagudev 4dded465a4
compositor: only UpdateImages that accepts SmallVec and add helpers for single image (#37730)
Before we only offered helper to add single image (no update or delete)
that got special IPC message, now we simplify this by offering all ops
helpers for dealing with single image (that happens most of the time),
that simply uses `update_images` under the hood. We also optimize for
this use case by using `SmallVec<[ImageUpdate; 1]>` to avoid alloc.

Testing: Just refactor, but code is covered by WPT tests

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
2025-06-26 14:57:15 +00:00
..
webgl_mode webgl: Replace webrender API with compositor API for images handling (#37714) 2025-06-26 09:06:24 +00:00
Cargo.toml pixels: Move Snapshot and related data structures to pixels (#37590) 2025-06-20 14:47:06 +00:00
lib.rs Split webgl into separate crate (#36718) 2025-04-30 05:27:44 +00:00
webgl_limits.rs Split webgl into separate crate (#36718) 2025-04-30 05:27:44 +00:00
webgl_thread.rs compositor: only UpdateImages that accepts SmallVec and add helpers for single image (#37730) 2025-06-26 14:57:15 +00:00
webxr.rs Split webgl into separate crate (#36718) 2025-04-30 05:27:44 +00:00