summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-03-07 00:44:10 +0300
committerGitHub <noreply@github.com>2026-03-06 21:44:10 +0000
commit4152ac76d0813d9d0f67d2f04653a13fa6e17433 (patch)
treec341f1883cf5a182d32e4ad00192ba8786a9bb75 /src/helpers
parenta5858018d896e0e0f0db517f893cd9a0936dd881 (diff)
renderer: refactor Texture, Framebuffer and Renderbuffer (#13437)
Part 1 of the renderer refactors
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/Monitor.cpp2
-rw-r--r--src/helpers/cm/ColorManagement.hpp4
-rw-r--r--src/helpers/cm/ICC.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 557a6315..07156ff1 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -1879,7 +1879,7 @@ uint16_t CMonitor::isDSBlocked(bool full) {
// we can't scanout shm buffers.
const auto params = PSURFACE->m_current.buffer->dmabuf();
- if (!params.success || !PSURFACE->m_current.texture->m_eglImage /* dmabuf */) {
+ if (!params.success || !PSURFACE->m_current.texture->isDMA() /* dmabuf */) {
reasons |= DS_BLOCK_DMA;
if (!full)
return reasons;
diff --git a/src/helpers/cm/ColorManagement.hpp b/src/helpers/cm/ColorManagement.hpp
index 9938ffbf..0103e2a4 100644
--- a/src/helpers/cm/ColorManagement.hpp
+++ b/src/helpers/cm/ColorManagement.hpp
@@ -17,7 +17,7 @@
#define HDR_REF_LUMINANCE 203.0
#define HLG_MAX_LUMINANCE 1000.0
-class CTexture;
+class ITexture;
namespace NColorManagement {
enum eNoShader : uint8_t {
@@ -219,7 +219,7 @@ namespace NColorManagement {
bool present = false;
size_t lutSize = 33;
std::vector<float> lutDataPacked;
- SP<CTexture> lutTexture;
+ SP<ITexture> lutTexture;
std::optional<SVCGTTable16> vcgt;
} icc;
diff --git a/src/helpers/cm/ICC.cpp b/src/helpers/cm/ICC.cpp
index 34045543..00140c62 100644
--- a/src/helpers/cm/ICC.cpp
+++ b/src/helpers/cm/ICC.cpp
@@ -226,7 +226,7 @@ static std::expected<void, std::string> buildIcc3DLut(cmsHPROFILE profile, SImag
Log::logger->log(Log::DEBUG, "3D LUT constructed, size {}", image.icc.lutDataPacked.size());
// upload
- image.icc.lutTexture = makeShared<CTexture>(image.icc.lutDataPacked, image.icc.lutSize);
+ image.icc.lutTexture = g_pHyprRenderer->createTexture(image.icc.lutDataPacked, image.icc.lutSize);
return {};
}