pub struct CompositorFrame {
pub display_list: Arc<DisplayList>,
pub scroll_offsets: ScrollOffsets,
}Expand description
The output the compositor produces each vsync for the GPU.
Contains the display list (from the view thread’s last paint) and the compositor’s current scroll offsets. The renderer uses these offsets to override tagged scroll transforms — no repaint needed.
Fields§
§display_list: Arc<DisplayList>§scroll_offsets: ScrollOffsetsCompositor’s authoritative scroll offsets.
The renderer looks up offsets by DOM node ID (O(1) via Storage)
when it encounters a PushTransform tagged with scroll_node.
Auto Trait Implementations§
impl Freeze for CompositorFrame
impl !RefUnwindSafe for CompositorFrame
impl Send for CompositorFrame
impl Sync for CompositorFrame
impl Unpin for CompositorFrame
impl UnsafeUnpin for CompositorFrame
impl !UnwindSafe for CompositorFrame
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert