diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2023-04-06 22:39:08 +0200 |
---|---|---|
committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2023-04-06 22:39:08 +0200 |
commit | b1e38fc7eaf5d01a9a1f5ceeab1b8b75e143cabf (patch) | |
tree | 756a0e2c81a5b0ed3c74fe7081b355ed225c8781 | |
parent | 9ef98452a31c0936187e8a877f6a99c4308b9976 (diff) |
output: Drop output_is_direct_scanout
-rw-r--r-- | include/types/wlr_output.h | 2 | ||||
-rw-r--r-- | types/output/render.c | 15 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h index 30c3e45f..5f75eb60 100644 --- a/include/types/wlr_output.h +++ b/include/types/wlr_output.h @@ -6,8 +6,6 @@ void output_pending_resolution(struct wlr_output *output, const struct wlr_output_state *state, int *width, int *height); -bool output_is_direct_scanout(struct wlr_output *output, - struct wlr_buffer *buffer); struct wlr_drm_format *output_pick_format(struct wlr_output *output, const struct wlr_drm_format_set *display_formats, uint32_t format); diff --git a/types/output/render.c b/types/output/render.c index ed1afa4a..c33103da 100644 --- a/types/output/render.c +++ b/types/output/render.c @@ -242,18 +242,3 @@ uint32_t wlr_output_preferred_read_format(struct wlr_output *output) { return fmt; } - -bool output_is_direct_scanout(struct wlr_output *output, - struct wlr_buffer *buffer) { - if (output->swapchain == NULL) { - return true; - } - - for (size_t i = 0; i < WLR_SWAPCHAIN_CAP; i++) { - if (output->swapchain->slots[i].buffer == buffer) { - return false; - } - } - - return true; -} |