console: save current scanout details
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 20 Feb 2021 12:23:03 +0000 (16:23 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Dec 2021 06:50:21 +0000 (10:50 +0400)
commitebced091854517f063c46ce8e522ebc45e9bccdf
treecce5e99c1341377a0b7ff871473136b4600dc34f
parentf6ef71bded95d99106d4541cf1f420376818732e
console: save current scanout details

Add a new DisplayScanout structure to save the current scanout details.
This allows to attach later UI backends and set the scanout.

Introduce displaychangelistener_display_console() helper function to
handle the dpy_gfx_switch/gl_scanout() & dpy_gfx_update() calls.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
include/ui/console.h
ui/console.c