pub struct Subcompositor;
Expand description
An implementation of the wl_subcompositor global.
wl_subcompositor provides an interface for clients to defer some composition to the server. For example, a media player application may provide the compositor with one surface that contains the video frames and another surface that contains playback controls. Deferring this composition to the server allows for the server to make certain optimizations, such as mapping these surfaces to hardware layers on the display controller, if available.
Implementation Note: We currently implement the wl_subcompositor by creating new scenic ShapeNodes and placing them as children of the parent node. This makes for a simple implementation, but we don’t support any alpha blending of subsurfaces (due to limitations in how Scenic handles these use cases). Scenic may be extended to handle these 2D composition use-cases, but without that we’ll need to do some of our own blending here.
Implementations§
Source§impl Subcompositor
impl Subcompositor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Subcompositor
impl RefUnwindSafe for Subcompositor
impl Send for Subcompositor
impl Sync for Subcompositor
impl Unpin for Subcompositor
impl UnwindSafe for Subcompositor
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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>
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>
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 more