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 Freeze for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
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