gbm: Support resetting buffers
This commit is contained in:
parent
08ac5ba6d1
commit
171456c7ba
|
@ -238,6 +238,11 @@ where
|
|||
flip.map_err(Error::DrmError)
|
||||
}
|
||||
|
||||
/// Reset the underlying buffers
|
||||
pub fn reset_buffers(&mut self) {
|
||||
self.swapchain.reset_buffers()
|
||||
}
|
||||
|
||||
/// Returns the underlying [`crtc`](drm::control::crtc) of this surface
|
||||
pub fn crtc(&self) -> crtc::Handle {
|
||||
self.drm.crtc()
|
||||
|
|
Loading…
Reference in New Issue