gbm: Support resetting buffers

This commit is contained in:
Victor Brekenfeld 2021-12-30 20:08:47 +01:00
parent 08ac5ba6d1
commit 171456c7ba
1 changed files with 5 additions and 0 deletions

View File

@ -238,6 +238,11 @@ where
flip.map_err(Error::DrmError) 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 /// Returns the underlying [`crtc`](drm::control::crtc) of this surface
pub fn crtc(&self) -> crtc::Handle { pub fn crtc(&self) -> crtc::Handle {
self.drm.crtc() self.drm.crtc()