config: allow disabling direct scanout
This commit is contained in:
parent
da84e9ec27
commit
114c293950
9 changed files with 63 additions and 1 deletions
|
|
@ -369,6 +369,11 @@ impl DrmDevice {
|
|||
pub fn set_gfx_api(self, gfx_api: GfxApi) {
|
||||
get!().set_gfx_api(Some(self), gfx_api);
|
||||
}
|
||||
|
||||
/// Enables or disables direct scanout of client surfaces for this device.
|
||||
pub fn set_direct_scanout_enabled(self, enabled: bool) {
|
||||
get!().set_direct_scanout_enabled(Some(self), enabled);
|
||||
}
|
||||
}
|
||||
|
||||
/// A graphics API.
|
||||
|
|
@ -389,3 +394,12 @@ pub enum GfxApi {
|
|||
pub fn set_gfx_api(gfx_api: GfxApi) {
|
||||
get!().set_gfx_api(None, gfx_api);
|
||||
}
|
||||
|
||||
/// Enables or disables direct scanout of client surfaces.
|
||||
///
|
||||
/// The default is `true`.
|
||||
///
|
||||
/// This setting can be overwritten per-device with [DrmDevice::set_direct_scanout_enabled].
|
||||
pub fn set_direct_scanout_enabled(enabled: bool) {
|
||||
get!().set_direct_scanout_enabled(None, enabled);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue