summaryrefslogtreecommitdiff
path: root/src/protocols/FrogColorManagement.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/FrogColorManagement.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/FrogColorManagement.hpp')
-rw-r--r--src/protocols/FrogColorManagement.hpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/protocols/FrogColorManagement.hpp b/src/protocols/FrogColorManagement.hpp
deleted file mode 100644
index 32e2202c..00000000
--- a/src/protocols/FrogColorManagement.hpp
+++ /dev/null
@@ -1,54 +0,0 @@
-#pragma once
-
-#include <cstdint>
-#include "WaylandProtocol.hpp"
-#include "protocols/core/Compositor.hpp"
-#include "frog-color-management-v1.hpp"
-
-class CFrogColorManager {
- public:
- CFrogColorManager(SP<CFrogColorManagementFactoryV1> resource_);
-
- bool good();
-
- private:
- SP<CFrogColorManagementFactoryV1> m_resource;
-};
-
-class CFrogColorManagementSurface {
- public:
- CFrogColorManagementSurface(SP<CFrogColorManagedSurface> resource_, SP<CWLSurfaceResource> surface_);
-
- bool good();
- wl_client* client();
-
- WP<CFrogColorManagementSurface> m_self;
- WP<CWLSurfaceResource> m_surface;
-
- bool m_pqIntentSent = false;
-
- private:
- SP<CFrogColorManagedSurface> m_resource;
- wl_client* m_client = nullptr;
-};
-
-class CFrogColorManagementProtocol : public IWaylandProtocol {
- public:
- CFrogColorManagementProtocol(const wl_interface* iface, const int& ver, const std::string& name);
-
- virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id);
-
- private:
- void destroyResource(CFrogColorManager* resource);
- void destroyResource(CFrogColorManagementSurface* resource);
-
- std::vector<SP<CFrogColorManager>> m_managers;
- std::vector<SP<CFrogColorManagementSurface>> m_surfaces;
-
- friend class CFrogColorManager;
- friend class CFrogColorManagementSurface;
-};
-
-namespace PROTO {
- inline UP<CFrogColorManagementProtocol> frogColorManagement;
-};