xwayland/glamor: Drop the allow_commit() hook
That was used only by the EGLStream backend, we can remove it. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1386>
This commit is contained in:
parent
6fd77acd91
commit
4eb8684f52
|
@ -126,17 +126,6 @@ xwl_glamor_has_wl_interfaces(struct xwl_screen *xwl_screen,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
|
||||||
xwl_glamor_allow_commits(struct xwl_window *xwl_window)
|
|
||||||
{
|
|
||||||
struct xwl_screen *xwl_screen = xwl_window->xwl_screen;
|
|
||||||
|
|
||||||
if (xwl_screen->egl_backend->allow_commits)
|
|
||||||
return xwl_screen->egl_backend->allow_commits(xwl_window);
|
|
||||||
else
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
xwl_avoid_implicit_redirect(WindowPtr window)
|
xwl_avoid_implicit_redirect(WindowPtr window)
|
||||||
{
|
{
|
||||||
|
|
|
@ -132,7 +132,6 @@ void xwl_glamor_init_wl_registry(struct xwl_screen *xwl_screen,
|
||||||
uint32_t version);
|
uint32_t version);
|
||||||
Bool xwl_glamor_has_wl_interfaces(struct xwl_screen *xwl_screen,
|
Bool xwl_glamor_has_wl_interfaces(struct xwl_screen *xwl_screen,
|
||||||
struct xwl_egl_backend *xwl_egl_backend);
|
struct xwl_egl_backend *xwl_egl_backend);
|
||||||
Bool xwl_glamor_allow_commits(struct xwl_window *xwl_window);
|
|
||||||
void xwl_glamor_egl_make_current(struct xwl_screen *xwl_screen);
|
void xwl_glamor_egl_make_current(struct xwl_screen *xwl_screen);
|
||||||
Bool xwl_glamor_needs_buffer_flush(struct xwl_screen *xwl_screen);
|
Bool xwl_glamor_needs_buffer_flush(struct xwl_screen *xwl_screen);
|
||||||
Bool xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen);
|
Bool xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen);
|
||||||
|
|
|
@ -407,11 +407,6 @@ xwl_screen_post_damage(struct xwl_screen *xwl_screen)
|
||||||
if (!xwl_window->allow_commits)
|
if (!xwl_window->allow_commits)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
#ifdef XWL_HAS_GLAMOR
|
|
||||||
if (xwl_screen->glamor && !xwl_glamor_allow_commits(xwl_window))
|
|
||||||
continue;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
xwl_window_post_damage(xwl_window);
|
xwl_window_post_damage(xwl_window);
|
||||||
xorg_list_del(&xwl_window->link_damage);
|
xorg_list_del(&xwl_window->link_damage);
|
||||||
xorg_list_append(&xwl_window->link_damage, &commit_window_list);
|
xorg_list_append(&xwl_window->link_damage, &commit_window_list);
|
||||||
|
|
Loading…
Reference in New Issue