summaryrefslogtreecommitdiff
path: root/src/protocols/ToplevelExport.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/ToplevelExport.cpp
parent5c5ba65ad32aa59c9e769d7b2ae62ea632d773f0 (diff)
egl: move over to use hyprgraphics (#12988)
use the hyprgraphics helpers instead.
Diffstat (limited to 'src/protocols/ToplevelExport.cpp')
-rw-r--r--src/protocols/ToplevelExport.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp
index 7b3d0c89..5536e3d7 100644
--- a/src/protocols/ToplevelExport.cpp
+++ b/src/protocols/ToplevelExport.cpp
@@ -6,7 +6,9 @@
#include "../render/Renderer.hpp"
#include <hyprutils/math/Vector2D.hpp>
+#include <hyprgraphics/egl/Egl.hpp>
+using namespace Hyprgraphics::Egl;
using namespace Screenshare;
CToplevelExportClient::CToplevelExportClient(SP<CHyprlandToplevelExportManagerV1> resource_) : m_resource(resource_) {
@@ -73,8 +75,8 @@ CToplevelExportFrame::CToplevelExportFrame(SP<CHyprlandToplevelExportFrameV1> re
DRMFormat format = formats.at(0);
auto bufSize = m_frame->bufferSize();
- const auto PSHMINFO = NFormatUtils::getPixelFormatFromDRM(format);
- const auto stride = NFormatUtils::minStride(PSHMINFO, bufSize.x);
+ const auto PSHMINFO = getPixelFormatFromDRM(format);
+ const auto stride = minStride(PSHMINFO, bufSize.x);
m_resource->sendBuffer(NFormatUtils::drmToShm(format), bufSize.x, bufSize.y, stride);
if LIKELY (format != DRM_FORMAT_INVALID)