From c608fc89d8cb850b9c53c3fa84e7c08ea3c0e30a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 7 May 2020 19:20:56 +0200 Subject: backend/drm: rename crtc_pageflip to crtc_commit Also add a flags argument. The commit function will also be used for disabling the CRTC. --- include/backend/drm/iface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/backend/drm/iface.h b/include/backend/drm/iface.h index b99262b8..6498bb73 100644 --- a/include/backend/drm/iface.h +++ b/include/backend/drm/iface.h @@ -16,9 +16,9 @@ struct wlr_drm_interface { // Enable or disable DPMS for connector bool (*conn_enable)(struct wlr_drm_backend *drm, struct wlr_drm_connector *conn, bool enable); - // Pageflip on crtc. - bool (*crtc_pageflip)(struct wlr_drm_backend *drm, - struct wlr_drm_connector *conn); + // Commit al pending changes on a CRTC. + bool (*crtc_commit)(struct wlr_drm_backend *drm, + struct wlr_drm_connector *conn, uint32_t flags); // Enable the cursor buffer on crtc. Set bo to NULL to disable bool (*crtc_set_cursor)(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc, struct gbm_bo *bo); -- cgit v1.2.3