summaryrefslogtreecommitdiff
path: root/src/protocols/core/Shm.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2026-04-05 20:37:07 +0200
committerGitHub <noreply@github.com>2026-04-05 19:37:07 +0100
commit809b9b9e78c69c53b62dfc7d5de5c20ff8fe0626 (patch)
treec54f0261aad8e01e9dc7abcfefafb056cd448ac3 /src/protocols/core/Shm.cpp
parent5c5ba65ad32aa59c9e769d7b2ae62ea632d773f0 (diff)
egl: move over to use hyprgraphics (#12988)
use the hyprgraphics helpers instead.
Diffstat (limited to 'src/protocols/core/Shm.cpp')
-rw-r--r--src/protocols/core/Shm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/protocols/core/Shm.cpp b/src/protocols/core/Shm.cpp
index c6f01b50..660458ab 100644
--- a/src/protocols/core/Shm.cpp
+++ b/src/protocols/core/Shm.cpp
@@ -7,6 +7,9 @@
#include "../types/WLBuffer.hpp"
#include "../../helpers/Format.hpp"
#include "../../render/Renderer.hpp"
+#include <hyprgraphics/egl/Egl.hpp>
+
+using namespace Hyprgraphics::Egl;
using namespace Hyprutils::OS;
CWLSHMBuffer::CWLSHMBuffer(WP<CWLSHMPoolResource> pool_, uint32_t id, int32_t offset_, const Vector2D& size_, int32_t stride_, uint32_t fmt_) {
@@ -21,7 +24,7 @@ CWLSHMBuffer::CWLSHMBuffer(WP<CWLSHMPoolResource> pool_, uint32_t id, int32_t of
m_stride = stride_;
m_fmt = fmt_;
m_offset = offset_;
- m_opaque = NFormatUtils::isFormatOpaque(NFormatUtils::shmToDRM(fmt_));
+ m_opaque = isDrmFormatOpaque(NFormatUtils::shmToDRM(fmt_));
m_resource = CWLBufferResource::create(makeShared<CWlBuffer>(pool_->m_resource->client(), 1, id));