From f91f38b79af2bcd091da7347e83066dea679a1bd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 25 May 2022 15:55:41 +0200 Subject: backend/drm: remove wlr_drm_surface.{width,height} This information is stored in wlr_swapchain, no need to duplicate it. --- include/backend/drm/renderer.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/backend') diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 52a2a053..77ed4127 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -19,10 +19,6 @@ struct wlr_drm_renderer { struct wlr_drm_surface { struct wlr_drm_renderer *renderer; - - uint32_t width; - uint32_t height; - struct wlr_swapchain *swapchain; }; @@ -40,7 +36,7 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, void finish_drm_renderer(struct wlr_drm_renderer *renderer); bool init_drm_surface(struct wlr_drm_surface *surf, - struct wlr_drm_renderer *renderer, uint32_t width, uint32_t height, + struct wlr_drm_renderer *renderer, int width, int height, const struct wlr_drm_format *drm_format); bool drm_fb_import(struct wlr_drm_fb **fb, struct wlr_drm_backend *drm, -- cgit v1.2.3