1
0
Fork 0
forked from wry/wry

metal: add copy-device based prime methods

This commit is contained in:
Julian Orth 2026-02-14 23:47:45 +01:00
parent a77929741a
commit 897944b580
4 changed files with 571 additions and 25 deletions

View file

@ -119,7 +119,6 @@ pub struct MetalDrmDevice {
pub gbm: Rc<GbmDevice>,
pub handle_events: HandleEvents,
pub ctx: CloneCell<Rc<MetalRenderContext>>,
#[expect(dead_code)]
pub copy_device: Rc<CopyDeviceHolder>,
pub on_change: OnChange<crate::backend::DrmEvent>,
pub direct_scanout_enabled: Cell<Option<bool>>,
@ -2649,7 +2648,6 @@ impl MetalBackend {
}
impl CopyDeviceHolder {
#[expect(dead_code)]
pub fn get(&self) -> Option<Rc<CopyDevice>> {
self.dev
.get_or_init(