diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-10-03 16:42:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 14:42:04 +0000 |
commit | f2f5614ad64927aa82aa8937ae14a6086df49d2b (patch) | |
tree | ac1a3f5f3150988f8fc1947204f2d173895c90e8 /components/script/dom/htmldivelement.rs | |
parent | 986c3a38a3ae257499c78ce21a50f689faa10c3b (diff) | |
download | servo-f2f5614ad64927aa82aa8937ae14a6086df49d2b.tar.gz servo-f2f5614ad64927aa82aa8937ae14a6086df49d2b.zip |
compositor: Create a single cross-process compositor API (#33619)
Instead of exposing many different kinds of messages to the compositor
that are routed through the constellation, expose a single message type
which can be sent across IPC channels. In addition, this IPC channel and
the route to the crossbeam channel with the compositor is created along
with the `CompositorProxy`, simplifying what needs to be passed around
during pipeline initialization.
Previously, some image updates (from video) were sent over IPC with a
special serialization routine and some were sent via crossbeam channels
(canvas). Now all updates go over the IPC channel `IpcSharedMemory` is
used to avoid serialization penalties. This should improve performance
and reduce copies for video, but add a memory copy overhead for canvas.
This will improve in the future when canvas renders directly into a
texture.
All-in-all this is a simplification which opens the path toward having a
standard compositor API and reduces the number of duplicate messages and
proxying that had to happen in libservo.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/dom/htmldivelement.rs')
0 files changed, 0 insertions, 0 deletions