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/headless/output.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'backend/headless') diff --git a/backend/headless/output.c b/backend/headless/output.c index 0073cb33..992a4883 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -49,13 +49,6 @@ static bool output_set_custom_mode(struct wlr_output *wlr_output, int32_t width, return true; } -static void output_transform(struct wlr_output *wlr_output, - enum wl_output_transform transform) { - struct wlr_headless_output *output = - headless_output_from_output(wlr_output); - output->wlr_output.transform = transform; -} - static bool output_attach_render(struct wlr_output *wlr_output, int *buffer_age) { struct wlr_headless_output *output = @@ -84,7 +77,6 @@ static void output_destroy(struct wlr_output *wlr_output) { static const struct wlr_output_impl output_impl = { .set_custom_mode = output_set_custom_mode, - .transform = output_transform, .destroy = output_destroy, .attach_render = output_attach_render, .commit = output_commit, -- cgit v1.2.3