[idd] resend the last captured frame if a new client connects

This commit is contained in:
Geoffrey McRae
2023-04-14 14:07:30 +10:00
parent fd0cc6aa10
commit d6b26b0eb1
5 changed files with 59 additions and 8 deletions

View File

@@ -19,6 +19,8 @@ class CIndirectDeviceContext
private:
WDFDEVICE m_wdfDevice;
IDDCX_ADAPTER m_adapter = nullptr;
IDDCX_MONITOR m_monitor = nullptr;
CIVSHMEM m_ivshmem;
PLGMPHost m_lgmp = nullptr;
@@ -36,7 +38,9 @@ private:
int m_width = 0;
int m_height = 0;
int m_pitch = 0;
DXGI_FORMAT m_format = DXGI_FORMAT_UNKNOWN;
void * m_data = nullptr;
bool SetupLGMP();