render: Nuke old read pixels API

Sadly, the new API is not backwards compatible with the old API. Since
we have already switched all users in wlroots to the new API compositors
are already practically mandated to implement the new API. Let's get rid
of the old one since there is no point.
This commit is contained in:
Alexander Orzechowski 2023-06-19 02:14:40 -04:00
parent b3575fedbc
commit 3ed1268f64
8 changed files with 0 additions and 211 deletions

View file

@ -198,36 +198,6 @@ bool output_pick_format(struct wlr_output *output,
return true;
}
uint32_t wlr_output_preferred_read_format(struct wlr_output *output) {
struct wlr_renderer *renderer = output->renderer;
assert(renderer != NULL);
if (!renderer->impl->preferred_read_format || !renderer->impl->read_pixels) {
return DRM_FORMAT_INVALID;
}
if (!wlr_output_configure_primary_swapchain(output, &output->pending, &output->swapchain)) {
return false;
}
struct wlr_buffer *buffer = wlr_swapchain_acquire(output->swapchain, NULL);
if (buffer == NULL) {
return false;
}
if (!wlr_renderer_begin_with_buffer(renderer, buffer)) {
wlr_buffer_unlock(buffer);
return false;
}
uint32_t fmt = renderer->impl->preferred_read_format(renderer);
wlr_renderer_end(renderer);
wlr_buffer_unlock(buffer);
return fmt;
}
struct wlr_render_pass *wlr_output_begin_render_pass(struct wlr_output *output,
struct wlr_output_state *state, int *buffer_age,
struct wlr_buffer_pass_options *render_options) {