From 171456c7ba18d8c0abbcceb5f819d348438aeff9 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Thu, 30 Dec 2021 20:08:47 +0100 Subject: [PATCH] gbm: Support resetting buffers --- src/backend/drm/surface/gbm.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/drm/surface/gbm.rs b/src/backend/drm/surface/gbm.rs index c587dd2..d5d646e 100644 --- a/src/backend/drm/surface/gbm.rs +++ b/src/backend/drm/surface/gbm.rs @@ -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()