pub enum Layer {
Container(EngineLayer),
DisplayList(DisplayListLayer),
Embedded(EmbeddedLayer),
Video(VideoLayer),
}Expand description
One node of a frame’s layer tree: the engine’s flow::Layer.
Variants§
Container(EngineLayer)
Children under one effect: what a push_* opens and pop closes, or a subtree a
previous frame built, added again.
DisplayList(DisplayListLayer)
A recorded picture at an offset: flow’s DisplayListLayer, from add_picture.
Embedded(EmbeddedLayer)
A composition layer at its place in paint order: flow’s PlatformViewLayer, from
add_embedded_layer. It draws nothing; the host places the layer and makes room for it.
Video(VideoLayer)
A video, drawn as part of the picture at its place in paint order: Chromium’s
cc::VideoLayer, from add_video. The host supplies the frame when it draws.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Layer
impl !UnwindSafe for Layer
impl Forget for Layer
impl Freeze for Layerwhere
*const ArcInner<ContainerLayer> is !null: Freeze,
PhantomData<ArcInner<ContainerLayer>>: Freeze,
*const ArcInner<DisplayList> is !null: Freeze,
PhantomData<ArcInner<DisplayList>>: Freeze,
*const ArcInner<dyn CompositionLayer> is !null: Freeze,
PhantomData<ArcInner<dyn CompositionLayer>>: Freeze,
*const ArcInner<dyn VideoFrameReader> is !null: Freeze,
PhantomData<ArcInner<dyn VideoFrameReader>>: Freeze,
impl Move for Layer
impl Send for Layerwhere
Arc<ContainerLayer>: Send,
Arc<DisplayList>: Send,
Arc<dyn CompositionLayer>: Send,
Arc<dyn VideoFrameReader>: Send,
impl Sync for Layerwhere
Arc<ContainerLayer>: Sync,
Arc<DisplayList>: Sync,
Arc<dyn CompositionLayer>: Sync,
Arc<dyn VideoFrameReader>: Sync,
impl Unpin for Layerwhere
Arc<ContainerLayer>: Unpin,
Arc<DisplayList>: Unpin,
Arc<dyn CompositionLayer>: Unpin,
Arc<dyn VideoFrameReader>: Unpin,
impl UnsafeUnpin for Layerwhere
*const ArcInner<ContainerLayer> is !null: UnsafeUnpin,
PhantomData<ArcInner<ContainerLayer>>: UnsafeUnpin,
*const ArcInner<DisplayList> is !null: UnsafeUnpin,
PhantomData<ArcInner<DisplayList>>: UnsafeUnpin,
*const ArcInner<dyn CompositionLayer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn CompositionLayer>>: UnsafeUnpin,
*const ArcInner<dyn VideoFrameReader> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn VideoFrameReader>>: 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