xwayland/present: Move wl_buffer check into xwl_glamor_check_flip

Keeps the glamor specific code together more.

Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
Michel Dänzer 2021-05-18 18:02:59 +02:00 committed by Michel Dänzer
parent 3641c24bd0
commit 104c7c5048
2 changed files with 3 additions and 3 deletions

View File

@ -84,6 +84,9 @@ xwl_glamor_check_flip(PixmapPtr pixmap)
{
struct xwl_screen *xwl_screen = xwl_screen_get(pixmap->drawable.pScreen);
if (!xwl_glamor_pixmap_get_wl_buffer(pixmap))
return FALSE;
if (xwl_screen->egl_backend->check_flip)
return xwl_screen->egl_backend->check_flip(pixmap);

View File

@ -404,9 +404,6 @@ xwl_present_check_flip2(RRCrtcPtr crtc,
if (!xwl_window)
return FALSE;
if (!xwl_glamor_pixmap_get_wl_buffer(pixmap))
return FALSE;
if (!xwl_glamor_check_flip(pixmap))
return FALSE;