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:
parent
3641c24bd0
commit
104c7c5048
|
@ -84,6 +84,9 @@ xwl_glamor_check_flip(PixmapPtr pixmap)
|
||||||
{
|
{
|
||||||
struct xwl_screen *xwl_screen = xwl_screen_get(pixmap->drawable.pScreen);
|
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)
|
if (xwl_screen->egl_backend->check_flip)
|
||||||
return xwl_screen->egl_backend->check_flip(pixmap);
|
return xwl_screen->egl_backend->check_flip(pixmap);
|
||||||
|
|
||||||
|
|
|
@ -404,9 +404,6 @@ xwl_present_check_flip2(RRCrtcPtr crtc,
|
||||||
if (!xwl_window)
|
if (!xwl_window)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!xwl_glamor_pixmap_get_wl_buffer(pixmap))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if (!xwl_glamor_check_flip(pixmap))
|
if (!xwl_glamor_check_flip(pixmap))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user