mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xwayland/glamor: Drop xwl_glamor_needs_n_buffering()
This function always return TRUE now that EGLSTream is gone, so 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 656d2efd4b)
This commit is contained in:
committed by
Alan Coopersmith
parent
9d343b25cc
commit
8dd4e5345d
@@ -268,12 +268,6 @@ glamor_egl_fd_name_from_pixmap(ScreenPtr screen,
|
||||
return 0;
|
||||
}
|
||||
|
||||
Bool
|
||||
xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Bool
|
||||
xwl_glamor_init(struct xwl_screen *xwl_screen)
|
||||
{
|
||||
|
||||
@@ -55,7 +55,6 @@ void xwl_glamor_init_wl_registry(struct xwl_screen *xwl_screen,
|
||||
uint32_t id, const char *interface,
|
||||
uint32_t version);
|
||||
void xwl_glamor_egl_make_current(struct xwl_screen *xwl_screen);
|
||||
Bool xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen);
|
||||
Bool xwl_glamor_check_flip(WindowPtr present_window, PixmapPtr pixmap);
|
||||
PixmapPtr xwl_glamor_create_pixmap_for_window (struct xwl_window *xwl_window);
|
||||
|
||||
|
||||
@@ -400,12 +400,5 @@ xwl_window_swap_pixmap(struct xwl_window *xwl_window)
|
||||
PixmapPtr
|
||||
xwl_window_buffers_get_pixmap(struct xwl_window *xwl_window)
|
||||
{
|
||||
#ifdef XWL_HAS_GLAMOR
|
||||
struct xwl_screen *xwl_screen = xwl_window->xwl_screen;
|
||||
|
||||
if (!xwl_glamor_needs_n_buffering(xwl_screen))
|
||||
return xwl_screen->screen->GetWindowPixmap(xwl_window->window);
|
||||
#endif /* XWL_HAS_GLAMOR */
|
||||
|
||||
return xwl_window_swap_pixmap(xwl_window);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user