ui/dbus: use shared memory when possible on win32
commit48dddba1763b2134e81ae6765b19184fd907f142
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 6 Jun 2023 11:56:48 +0000 (6 15:56 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Jun 2023 15:08:56 +0000 (27 17:08 +0200)
treeb5f36f8731fba249420918394f3bca54e5c1bfc0
parent9462ff4695aa0d086fd63f7f2efafe5a05f2a243
ui/dbus: use shared memory when possible on win32

When the display surface has an associated HANDLE, we can duplicate it
to the client process and let it map the memory to avoid expensive copies.

Introduce two new win32-specific methods ScanoutMap and UpdateMap. The
first is used to inform the listener about the a shared map
availability, and the second for display updates.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230606115658.677673-12-marcandre.lureau@redhat.com>
ui/dbus-display1.xml
ui/dbus-listener.c