From ce3f4c3fe1ed3d99500acf4e41293eb6c55f9a4d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 16 Jun 2019 12:35:40 +0300 Subject: output: remove wlr_output_impl.transform The backend doesn't need to handle transform changes, since everything is done in software. In fact, all of the implementations were all identical and just set the transform. We could add support for hardware transforms, but: - This would require a different field (something like hardware_transform) - Not all combinations are possible because there often are hardware limitations - The Wayland protocol isn't ready for this (in particular xdg-output, see [1]) This belongs to a different patch series anyway. [1]: https://patchwork.freedesktop.org/series/52324/ --- backend/drm/drm.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index f90890e7..47857df7 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -678,11 +678,6 @@ bool wlr_drm_connector_add_mode(struct wlr_output *output, return true; } -static void drm_connector_transform(struct wlr_output *output, - enum wl_output_transform transform) { - output->transform = transform; -} - static bool drm_connector_set_cursor(struct wlr_output *output, struct wlr_texture *texture, int32_t scale, enum wl_output_transform transform, @@ -963,7 +958,6 @@ static void drm_connector_destroy(struct wlr_output *output) { static const struct wlr_output_impl output_impl = { .enable = enable_drm_connector, .set_mode = drm_connector_set_mode, - .transform = drm_connector_transform, .set_cursor = drm_connector_set_cursor, .move_cursor = drm_connector_move_cursor, .destroy = drm_connector_destroy, -- cgit v1.2.3