import_surface

Function import_surface 

Source
pub fn import_surface<R>(
    renderer: &mut R,
    states: &SurfaceData,
) -> Result<(), R::Error>
where R: Renderer + ImportAll, R::TextureId: 'static,
Available on crate feature wayland_frontend only.
Expand description

Imports buffers of a surface using a given Renderer

This (or import_surface_tree) need to be called beforedraw_render_elements, if used later.

Note: This will do nothing, if you are not using crate::backend::renderer::utils::on_commit_buffer_handler to let smithay handle buffer management.