protocols: Don't update hdr metadata if image description is unchanged (#9776)

This commit is contained in:
Lee Bousfield 2025-03-29 19:25:27 -05:00 committed by GitHub
parent 46b00a4a86
commit 86c279d7d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions

View file

@ -65,6 +65,7 @@ class CColorManagementSurface {
SP<CWpColorManagementSurfaceV1> m_resource;
wl_client* pClient = nullptr;
NColorManagement::SImageDescription m_imageDescription;
NColorManagement::SImageDescription m_lastImageDescription;
bool m_hasImageDescription = false;
bool m_needsNewMetadata = false;
hdr_output_metadata m_hdrMetadata;