diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-12 19:07:24 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-05-17 16:22:43 +0200 |
commit | a8d7c2d4ea6ee26fe8151dcf5b47ec4350e8ac81 (patch) | |
tree | 886a10bc92a13cbf815f0fc22ab51ad7cac41656 | |
parent | 68758e8c2138a06bbb6edca94cdfae1be8bc3c57 (diff) |
screencopy-v1: stop using wlr_client_buffer
We can just use the wlr_dmabuf_v1_buffer directly, no need to wrap
it in a wlr_client_buffer.
-rw-r--r-- | types/wlr_screencopy_v1.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index d9b3f8dc..2aad103f 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -266,12 +266,7 @@ static void frame_handle_output_precommit(struct wl_listener *listener, static bool blit_dmabuf(struct wlr_renderer *renderer, struct wlr_dmabuf_v1_buffer *dst_dmabuf, struct wlr_dmabuf_attributes *src_attrs) { - struct wlr_client_buffer *dst_client_buffer = - wlr_client_buffer_import(renderer, dst_dmabuf->resource); - if (dst_client_buffer == NULL) { - return false; - } - struct wlr_buffer *dst_buffer = &dst_client_buffer->base; + struct wlr_buffer *dst_buffer = wlr_buffer_lock(&dst_dmabuf->base); struct wlr_texture *src_tex = wlr_texture_from_dmabuf(renderer, src_attrs); if (src_tex == NULL) { |