backend: add getters
This commit is contained in:
parent
042070ee99
commit
acec4c7f09
3 changed files with 19 additions and 9 deletions
|
|
@ -540,6 +540,9 @@ pub trait BackendDrmDevice {
|
|||
fn version(&self) -> Result<DrmVersion, DrmError>;
|
||||
fn set_direct_scanout_enabled(&self, enabled: bool);
|
||||
fn is_render_device(&self) -> bool;
|
||||
fn direct_scanout_enabled(&self) -> bool {
|
||||
false
|
||||
}
|
||||
fn create_lease(
|
||||
self: Rc<Self>,
|
||||
lessee: Rc<dyn BackendDrmLessee>,
|
||||
|
|
@ -551,6 +554,10 @@ pub trait BackendDrmDevice {
|
|||
fn set_flip_margin(&self, margin: u64) {
|
||||
let _ = margin;
|
||||
}
|
||||
#[expect(dead_code)]
|
||||
fn flip_margin(&self) -> Option<u64> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
pub trait BackendDrmLease {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue