diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-03 15:35:01 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-07-05 11:13:41 -0400 |
commit | d3d1c69aca6cde3f5189e862dfb501854e354654 (patch) | |
tree | 98b6ce97afecbb68c6e7f527f54f28c919e7f01a | |
parent | 8a4957570f2d546cad033371db0c2463459536ce (diff) |
buffer: remove renderer param from wlr_resource_get_buffer_size
The only reason we had this was because of EGL_WL_bind_wayland_display
support, which has been dropped.
-rw-r--r-- | include/wlr/types/wlr_buffer.h | 2 | ||||
-rw-r--r-- | types/wlr_buffer.c | 2 | ||||
-rw-r--r-- | types/wlr_surface.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index d23cdce8..e64e60c8 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -151,7 +151,7 @@ bool wlr_resource_is_buffer(struct wl_resource *resource); * Get the size of a wl_buffer resource. */ bool wlr_resource_get_buffer_size(struct wl_resource *resource, - struct wlr_renderer *renderer, int *width, int *height); + int *width, int *height); /** * Import a client buffer and lock it. * diff --git a/types/wlr_buffer.c b/types/wlr_buffer.c index 2c9530d1..59c36f6b 100644 --- a/types/wlr_buffer.c +++ b/types/wlr_buffer.c @@ -105,7 +105,7 @@ bool wlr_resource_is_buffer(struct wl_resource *resource) { } bool wlr_resource_get_buffer_size(struct wl_resource *resource, - struct wlr_renderer *renderer, int *width, int *height) { + int *width, int *height) { assert(wlr_resource_is_buffer(resource)); struct wl_shm_buffer *shm_buf = wl_shm_buffer_get(resource); diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 555859d9..105b820f 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -172,7 +172,7 @@ static void surface_state_finalize(struct wlr_surface *surface, if ((state->committed & WLR_SURFACE_STATE_BUFFER)) { if (state->buffer_resource != NULL) { wlr_resource_get_buffer_size(state->buffer_resource, - surface->renderer, &state->buffer_width, &state->buffer_height); + &state->buffer_width, &state->buffer_height); } else { state->buffer_width = state->buffer_height = 0; } |