INNER CODE UNIT · Rust

stable_solid_id

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

fn stable_solid_id(key: u64) -> Id {
    thread_local! {
        static IDS: RefCell<HashMap<u64, Id>> = RefCell::new(HashMap::new());
    }
    IDS.with(|ids| ids.borrow_mut().entry(key).or_insert_with(Id::new).clone())
}

pub fn get_render_elements<R>(
    renderer: &mut R,
    output: &Output,
    slot: &Slot<Dmabuf>,
    output_geometry: Rectangle<f64, smithay::utils::Logical>,
    now: Time<Monotonic>,
    cursor_image_status: &Mutex<CursorImageStatus>,
    cursor_state: &Mutex<CursorStateInner>,
    cursor_location: Point<f64, Logical>,
    is_surface_under_pointer: bool,
    flip_flutter_texture: bool,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…