summaryrefslogtreecommitdiff
path: root/src/protocols/ColorManagement.hpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2025-12-27 20:01:46 +0300
committerGitHub <noreply@github.com>2025-12-27 18:01:46 +0100
commit6d3b17ee832411f627d8bed6b74e09b4fa55e2fb (patch)
tree2931b419655ae44740973a689b4defa58b713334 /src/protocols/ColorManagement.hpp
parent42447a50d6840c5e28bd58db1225bae2fd7d5ed0 (diff)
render/cm: various updates, remove old protocols (#12693)
* fix named primaries * default to gamma22 * mark mastering primaries as supported * remove xx-cm and frog support * immutable primaries and image descriptions * clang-format
Diffstat (limited to 'src/protocols/ColorManagement.hpp')
-rw-r--r--src/protocols/ColorManagement.hpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/protocols/ColorManagement.hpp b/src/protocols/ColorManagement.hpp
index dea9f74c..d43d5c12 100644
--- a/src/protocols/ColorManagement.hpp
+++ b/src/protocols/ColorManagement.hpp
@@ -46,7 +46,6 @@ class CColorManagementOutput {
class CColorManagementSurface {
public:
- CColorManagementSurface(SP<CWLSurfaceResource> surface_); // temporary interface for frog CM
CColorManagementSurface(SP<CWpColorManagementSurfaceV1> resource, SP<CWLSurfaceResource> surface_);
bool good();
@@ -67,14 +66,11 @@ class CColorManagementSurface {
private:
SP<CWpColorManagementSurfaceV1> m_resource;
wl_client* m_client = nullptr;
- NColorManagement::SImageDescription m_imageDescription;
- NColorManagement::SImageDescription m_lastImageDescription;
+ NColorManagement::PImageDescription m_imageDescription;
+ NColorManagement::PImageDescription m_lastImageDescription;
bool m_hasImageDescription = false;
bool m_needsNewMetadata = false;
hdr_output_metadata m_hdrMetadata;
-
- friend class CXXColorManagementSurface;
- friend class CFrogColorManagementSurface;
};
class CColorManagementFeedbackSurface {
@@ -157,7 +153,7 @@ class CColorManagementImageDescription {
WP<CColorManagementImageDescription> m_self;
- NColorManagement::SImageDescription m_settings;
+ NColorManagement::PImageDescription m_settings;
private:
SP<CWpImageDescriptionV1> m_resource;
@@ -216,9 +212,6 @@ class CColorManagementProtocol : public IWaylandProtocol {
friend class CColorManagementIccCreator;
friend class CColorManagementParametricCreator;
friend class CColorManagementImageDescription;
-
- friend class CXXColorManagementSurface;
- friend class CFrogColorManagementSurface;
};
namespace PROTO {