From ee5f98ad49fed0439f3313ec685307831d1d1d05 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 18 Jul 2019 21:38:12 +0300 Subject: output: atomic mode, enabled, scale and transform This commit makes more output properties (mode, enabled, scale and transform) atomic. This means that they are double-buffered and only applied on commit. Compositors now need to call wlr_output_commit after setting any of those properties. Internally, backends still apply properties sequentially. The behaviour should be exactly the same as before. Future commits will update some backends to take advantage of the atomic interface. Some backends are non-atomic by design, e.g. the X11 backend or the legacy DRM backend. Updates: https://github.com/swaywm/wlroots/issues/1640 --- include/wlr/interfaces/wlr_output.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/wlr/interfaces') diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index a9a89c34..8d4a3fd8 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -15,10 +15,6 @@ #include struct wlr_output_impl { - bool (*enable)(struct wlr_output *output, bool enable); - bool (*set_mode)(struct wlr_output *output, struct wlr_output_mode *mode); - bool (*set_custom_mode)(struct wlr_output *output, int32_t width, - int32_t height, int32_t refresh); bool (*set_cursor)(struct wlr_output *output, struct wlr_texture *texture, int32_t scale, enum wl_output_transform transform, int32_t hotspot_x, int32_t hotspot_y, bool update_texture); -- cgit v1.2.3