diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2025-12-27 20:01:46 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-27 18:01:46 +0100 |
| commit | 6d3b17ee832411f627d8bed6b74e09b4fa55e2fb (patch) | |
| tree | 2931b419655ae44740973a689b4defa58b713334 /src/protocols/core | |
| parent | 42447a50d6840c5e28bd58db1225bae2fd7d5ed0 (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/core')
| -rw-r--r-- | src/protocols/core/Compositor.cpp | 2 | ||||
| -rw-r--r-- | src/protocols/core/Compositor.hpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/protocols/core/Compositor.cpp b/src/protocols/core/Compositor.cpp index c2d99176..b9e677af 100644 --- a/src/protocols/core/Compositor.cpp +++ b/src/protocols/core/Compositor.cpp @@ -556,7 +556,7 @@ void CWLSurfaceResource::commitState(SSurfaceState& state) { dropCurrentBuffer(); } -SImageDescription CWLSurfaceResource::getPreferredImageDescription() { +PImageDescription CWLSurfaceResource::getPreferredImageDescription() { static const auto PFORCE_HDR = CConfigValue<Hyprlang::INT>("quirks:prefer_hdr"); const auto WINDOW = m_hlSurface ? Desktop::View::CWindow::fromView(m_hlSurface->view()) : nullptr; diff --git a/src/protocols/core/Compositor.hpp b/src/protocols/core/Compositor.hpp index 7b295aa7..89bfb31b 100644 --- a/src/protocols/core/Compositor.hpp +++ b/src/protocols/core/Compositor.hpp @@ -33,7 +33,6 @@ class CDRMSyncobjSurfaceResource; class CFifoResource; class CCommitTimerResource; class CColorManagementSurface; -class CFrogColorManagementSurface; class CContentType; class CWLCallbackResource { @@ -126,7 +125,7 @@ class CWLSurfaceResource { void presentFeedback(const Time::steady_tp& when, PHLMONITOR pMonitor, bool discarded = false); void scheduleState(WP<SSurfaceState> state); void commitState(SSurfaceState& state); - NColorManagement::SImageDescription getPreferredImageDescription(); + NColorManagement::PImageDescription getPreferredImageDescription(); void sortSubsurfaces(); bool hasVisibleSubsurface(); |
