Re-exports§
pub use super::engine::scene::Scene;pub use super::engine::task::AnimationFuture;pub use super::engine::task::TransitionFuture;pub use super::engine::AnimationRef;pub use super::engine::Engine;pub use super::engine::NodeRef;pub use super::engine::TransactionRef;pub use super::types::BlendMode;pub use super::types::BorderRadius;pub use super::types::BorderStyle;pub use super::types::Color;pub use super::types::PaintColor;pub use super::types::Point;pub use super::types::Rectangle;pub use super::view::BuildLayerTree;pub use super::view::LayerTree;pub use super::view::LayerTreeBuilder;pub use super::view::RenderLayerTree;pub use super::view::View;pub use super::engine::animation::*;
Modules§
Structs§
- One rendered subtree buffer, ready to be handed to an external compositor (e.g. uploaded to a KMS/DRM plane).
Enums§
- Errors returned by layer and engine operations.
- Shape defines the visual boundary of a layer.
Traits§
Functions§
- Drop every cached subtree buffer, freeing all retained render surfaces and image snapshots. Useful on teardown or when the whole plane set is rebuilt. Must run on the render thread.
- Draw the scene to the given skia::Canvas
- Drop the cached subtree buffer for
root, freeing its render surface and image snapshot. Call this when a plane is retired (e.g. its window closed) so its buffer doesn’t linger in the cache for the lifetime of the process — the cache is only ever populated on render and is not otherwise evicted. Returnstrueif an entry was present. Must run on the render thread (same thread that calledrender_subtree_to_buffer). - Render a node and his subtree in the provided canvas taking care of the image caching if needed
- Render a single subtree
rootinto its own buffer, for an external compositor (e.g. a KMS/DRM plane). Re-renders only when the subtree’s content or the suppliedbackdropchanged since the last call for this root; otherwise returns the cached buffer (SubtreeBuffer::from_cache == true).