INNER CODE UNIT · Rust

get_frame_elements_from_dmabuf

free-explorers/veshell · src/embedder/backend/render/mod.rs:132

pub fn get_frame_elements_from_dmabuf<R>(
    renderer: &mut R,
    output: &Output,
    dmabuf: &Dmabuf,
    output_geometry: Rectangle<f64, smithay::utils::Logical>,
    flip_flutter_texture: bool,
    surfaces_in_gaming_mode: Vec<&WlSurface>,
) -> Vec<VeshellRenderElements<R>>
where
    R: Renderer + ImportAll + ImportMem + ImportDma,
    <R as RendererSuper>::TextureId: Send + Clone + 'static,
    <R as RendererSuper>::Error:,
    VeshellRenderElements<R>: RenderElement<R>,
{
    let scale = output.current_scale();
    let mut elements: Vec<VeshellRenderElements<R>> = Vec::new();

    for surface in surfaces_in_gaming_mode {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…