globals: add all globals during startup
This commit is contained in:
parent
b976f25cf9
commit
ac77119aef
6 changed files with 35 additions and 26 deletions
|
|
@ -10,6 +10,7 @@ use {
|
|||
},
|
||||
leaks::Tracker,
|
||||
object::{Object, Version},
|
||||
state::State,
|
||||
video::drm::sync_obj::SyncObj,
|
||||
wire::{WpLinuxDrmSyncobjManagerV1Id, wp_linux_drm_syncobj_manager_v1::*},
|
||||
},
|
||||
|
|
@ -65,6 +66,10 @@ impl Global for WpLinuxDrmSyncobjManagerV1Global {
|
|||
fn version(&self) -> u32 {
|
||||
1
|
||||
}
|
||||
|
||||
fn exposed(&self, state: &State) -> bool {
|
||||
state.explicit_sync_enabled.get() && state.explicit_sync_supported.get()
|
||||
}
|
||||
}
|
||||
|
||||
simple_add_global!(WpLinuxDrmSyncobjManagerV1Global);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue