pub enum LayerPicture {
Buffer(Arc<dyn HardwareBuffer>),
Frame(Arc<dyn VideoFrame>),
}Expand description
What a composition layer shows now (CompositionLayer::current_picture), as raw memory or a
lent frame, as the app holds either.
Variants§
Buffer(Arc<dyn HardwareBuffer>)
The buffer presented to the layer last, which fills it.
Frame(Arc<dyn VideoFrame>)
The frame of the video or the camera shown on the layer, lent: held while the picture is kept, since its pool hands its memory out again once nothing holds it. The system shows it whole, keeping its shape.
Auto Trait Implementations§
impl !RefUnwindSafe for LayerPicture
impl !UnwindSafe for LayerPicture
impl Forget for LayerPicture
impl Freeze for LayerPicturewhere
*const ArcInner<dyn HardwareBuffer> is !null: Freeze,
PhantomData<ArcInner<dyn HardwareBuffer>>: Freeze,
*const ArcInner<dyn VideoFrame> is !null: Freeze,
PhantomData<ArcInner<dyn VideoFrame>>: Freeze,
impl Move for LayerPicture
impl Send for LayerPicture
impl Sync for LayerPicture
impl Unpin for LayerPicture
impl UnsafeUnpin for LayerPicturewhere
*const ArcInner<dyn HardwareBuffer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn HardwareBuffer>>: UnsafeUnpin,
*const ArcInner<dyn VideoFrame> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn VideoFrame>>: UnsafeUnpin,
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