Trait LayerCompositor
Source pub trait LayerCompositor {
    // Required methods
    fn begin_frame(&mut self, input: &CompositorInputConfig<'_>) -> bool;
    fn bind_layer(&mut self, index: usize, dirty_rects: &[DeviceIntRect]);
    fn present_layer(&mut self, index: usize, dirty_rects: &[DeviceIntRect]);
    fn add_surface(
        &mut self,
        index: usize,
        transform: CompositorSurfaceTransform,
        clip_rect: DeviceIntRect,
        image_rendering: ImageRendering,
    );
    fn end_frame(&mut self);
    fn get_window_properties(&self) -> WindowProperties;
}