pub struct ZeroCopyCompositor { /* private fields */ }Expand description
Zero-copy compositor that ingests frames from multiple sandboxed process ring buffers.
Implementations§
Source§impl ZeroCopyCompositor
impl ZeroCopyCompositor
Sourcepub fn attach_surface(
&mut self,
surface_id: usize,
ring_buffer: Arc<ShmRingBuffer>,
)
pub fn attach_surface( &mut self, surface_id: usize, ring_buffer: Arc<ShmRingBuffer>, )
Attaches an isolated tab or worker surface ring buffer.
Sourcepub fn detach_surface(&mut self, surface_id: usize)
pub fn detach_surface(&mut self, surface_id: usize)
Detaches an isolated surface by its identifier.
Sourcepub fn set_surface_layout(
&mut self,
surface_id: usize,
offset: (f32, f32),
visible: bool,
)
pub fn set_surface_layout( &mut self, surface_id: usize, offset: (f32, f32), visible: bool, )
Updates the spatial viewport offset and visibility for a specific attached surface.
Sourcepub fn composite_into(&mut self, master_display_list: &mut DisplayList) -> usize
pub fn composite_into(&mut self, master_display_list: &mut DisplayList) -> usize
Composites the latest available frames from all attached surfaces into the master display list. Returns the number of new frames ingested and composited.
Sourcepub fn telemetry(&self) -> &CompositorTelemetry
pub fn telemetry(&self) -> &CompositorTelemetry
Retrieves telemetry statistics for frame consumption and latency.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ZeroCopyCompositor
impl Freeze for ZeroCopyCompositor
impl Move for ZeroCopyCompositor
impl RefUnwindSafe for ZeroCopyCompositor
impl Send for ZeroCopyCompositor
impl Sync for ZeroCopyCompositor
impl Unpin for ZeroCopyCompositor
impl UnsafeUnpin for ZeroCopyCompositor
impl UnwindSafe for ZeroCopyCompositor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more