mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-07 23:00:14 +01:00
xwayland/window-buffers: Add xwl_window_buffer_release()
We want to decorrelate the explicit buffer synchronization from the
window buffers, and move that to the GLAMOR/GBM code instead.
To do that, we need to be able to invoke the xwl_window_buffer's
release_callback() routine from outside the window buffer code.
For that purpose, introduce xwl_window_buffer_release() which calls
xwl_window_buffer_release_callback() for us.
This is preparation work for the following changes, no functional change
intended at this point.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
(cherry picked from commit b5082073b0)
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1569>
This commit is contained in:
parent
23400afb72
commit
b1734ae737
2 changed files with 7 additions and 0 deletions
|
|
@ -238,6 +238,12 @@ xwl_window_buffer_release_callback(void *data)
|
|||
xwl_window);
|
||||
}
|
||||
|
||||
void
|
||||
xwl_window_buffer_release(struct xwl_window_buffer *xwl_window_buffer)
|
||||
{
|
||||
xwl_window_buffer_release_callback(xwl_window_buffer);
|
||||
}
|
||||
|
||||
#ifdef XWL_HAS_GLAMOR
|
||||
static void
|
||||
xwl_window_buffers_release_fence_avail(int fd, int xevents, void *data)
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include "xwayland-types.h"
|
||||
|
||||
void xwl_window_buffer_add_damage_region(struct xwl_window *xwl_window);
|
||||
void xwl_window_buffer_release(struct xwl_window_buffer *xwl_window_buffer);
|
||||
void xwl_window_buffers_init(struct xwl_window *xwl_window);
|
||||
void xwl_window_buffers_dispose(struct xwl_window *xwl_window);
|
||||
void xwl_window_realloc_pixmap(struct xwl_window *xwl_window);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue