]> git.proxmox.com Git - mirror_qemu.git/commit
ui/dbus: fix texture sharing
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 17 Feb 2022 11:07:21 +0000 (15:07 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 15 Mar 2022 08:54:55 +0000 (12:54 +0400)
commit589089feee5bf5110f21fd582f9c2c479ae718a2
tree2e658edeb5b5abdc5b3dfb9f798d9abb9875afe0
parentc84ab0a500a84851debd1d4485e72325da98c778
ui/dbus: fix texture sharing

The DBus listener naively create, update and destroy textures without
taking into account other listeners. The texture were shared, but
texture update was unnecessarily duplicated.

Teach DisplayGLCtx to do optionally shared texture handling. This is
only implemented for DBus display at this point, however the same
infrastructure could potentially be used for other future combinations.

Reported-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
include/ui/console.h
ui/console.c
ui/dbus-listener.c
ui/dbus.c