summaryrefslogtreecommitdiff
path: root/src/protocols/ColorManagement.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocols/ColorManagement.hpp')
-rw-r--r--src/protocols/ColorManagement.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocols/ColorManagement.hpp b/src/protocols/ColorManagement.hpp
index 573abf69..e387b3b7 100644
--- a/src/protocols/ColorManagement.hpp
+++ b/src/protocols/ColorManagement.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <drm_mode.h>
#include <memory>
#include <vector>
#include <cstdint>
@@ -54,12 +55,18 @@ class CColorManagementSurface {
const SImageDescription& imageDescription();
bool hasImageDescription();
+ void setHasImageDescription(bool has);
+ const hdr_output_metadata& hdrMetadata();
+ void setHDRMetadata(const hdr_output_metadata& metadata);
+ bool needsHdrMetadataUpdate();
private:
SP<CXxColorManagementSurfaceV4> resource;
wl_client* pClient = nullptr;
SImageDescription m_imageDescription;
bool m_hasImageDescription = false;
+ bool m_needsNewMetadata = false;
+ hdr_output_metadata m_hdrMetadata;
friend class CFrogColorManagementSurface;
};