From de1f8ce0abb8c43d1e6a00c31c6d24dfe0505b92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 6 Jun 2023 15:56:58 +0400 Subject: [PATCH] ui/dbus: use shared D3D11 Texture2D when possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the client implements "org.qemu.Display1.Listener.Win32.D3d11" and we are running on ANGLE/win32, share the scanout texture with the peer process, and draw with ScanoutTexture2d/UpdateTexture2d methods. Signed-off-by: Marc-André Lureau Message-Id: <20230606115658.677673-22-marcandre.lureau@redhat.com> --- ui/dbus-display1.xml | 56 +++++++- ui/dbus-listener.c | 299 ++++++++++++++++++++++++++++++++++++++----- 2 files changed, 324 insertions(+), 31 deletions(-) diff --git a/ui/dbus-display1.xml b/ui/dbus-display1.xml index 7233286b28..f0e2fac212 100644 --- a/ui/dbus-display1.xml +++ b/ui/dbus-display1.xml @@ -472,8 +472,9 @@ + + + + + + + + + + + + + + + + + + + + + +