mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwayland/glamor: Drop the post_damage() hook
That was used only with 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>
(cherry picked from commit 6fd77acd91)
This commit is contained in:
committed by
Alan Coopersmith
parent
440fb711f6
commit
43fd435d6a
@@ -125,19 +125,6 @@ xwl_glamor_has_wl_interfaces(struct xwl_screen *xwl_screen,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Bool
|
||||
xwl_glamor_post_damage(struct xwl_window *xwl_window,
|
||||
PixmapPtr pixmap)
|
||||
{
|
||||
struct xwl_screen *xwl_screen = xwl_window->xwl_screen;
|
||||
RegionPtr region = xwl_window_get_damage_region(xwl_window);
|
||||
|
||||
if (xwl_screen->egl_backend->post_damage)
|
||||
return xwl_screen->egl_backend->post_damage(xwl_window, pixmap, region);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Bool
|
||||
xwl_glamor_allow_commits(struct xwl_window *xwl_window)
|
||||
{
|
||||
|
||||
@@ -132,8 +132,6 @@ void xwl_glamor_init_wl_registry(struct xwl_screen *xwl_screen,
|
||||
uint32_t version);
|
||||
Bool xwl_glamor_has_wl_interfaces(struct xwl_screen *xwl_screen,
|
||||
struct xwl_egl_backend *xwl_egl_backend);
|
||||
Bool xwl_glamor_post_damage(struct xwl_window *xwl_window,
|
||||
PixmapPtr pixmap);
|
||||
Bool xwl_glamor_allow_commits(struct xwl_window *xwl_window);
|
||||
void xwl_glamor_egl_make_current(struct xwl_screen *xwl_screen);
|
||||
Bool xwl_glamor_needs_buffer_flush(struct xwl_screen *xwl_screen);
|
||||
|
||||
@@ -1357,15 +1357,6 @@ xwl_window_attach_buffer(struct xwl_window *xwl_window)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef XWL_HAS_GLAMOR
|
||||
if (xwl_screen->glamor) {
|
||||
if (!xwl_glamor_post_damage(xwl_window, pixmap)) {
|
||||
ErrorF("glamor: Failed to post damage\n");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
wl_surface_attach(xwl_window->surface, buffer, 0, 0);
|
||||
|
||||
/* Arbitrary limit to try to avoid flooding the Wayland
|
||||
|
||||
Reference in New Issue
Block a user