summaryrefslogtreecommitdiff
path: root/src/protocols
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-03-29 00:41:45 +0300
committerGitHub <noreply@github.com>2026-03-28 21:41:45 +0000
commit38a7f03cf0e5ee116794a78581634ba3dab508fa (patch)
tree969891411b2af4e437a183004018cfc359a3057e /src/protocols
parentef2e8dfd5f7e6ee55fa7bc48e44974e64938d14a (diff)
renderer: refactor part 7: api fixes (#13631)
Part 7 of ujin's refactors --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
Diffstat (limited to 'src/protocols')
-rw-r--r--src/protocols/types/Buffer.hpp2
-rw-r--r--src/protocols/types/SurfaceState.cpp2
-rw-r--r--src/protocols/types/SurfaceState.hpp8
3 files changed, 7 insertions, 5 deletions
diff --git a/src/protocols/types/Buffer.hpp b/src/protocols/types/Buffer.hpp
index afff11a5..927cd259 100644
--- a/src/protocols/types/Buffer.hpp
+++ b/src/protocols/types/Buffer.hpp
@@ -26,7 +26,7 @@ class IHLBuffer : public Aquamarine::IBuffer {
void onBackendRelease(const std::function<void()>& fn);
void addReleasePoint(CDRMSyncPointState& point);
- SP<ITexture> m_texture;
+ SP<Render::ITexture> m_texture;
bool m_opaque = false;
SP<CWLBufferResource> m_resource;
std::vector<UP<CSyncReleaser>> m_syncReleasers;
diff --git a/src/protocols/types/SurfaceState.cpp b/src/protocols/types/SurfaceState.cpp
index da98d3fb..7e1baaad 100644
--- a/src/protocols/types/SurfaceState.cpp
+++ b/src/protocols/types/SurfaceState.cpp
@@ -35,7 +35,7 @@ CRegion SSurfaceState::accumulateBufferDamage() {
return bufferDamage;
}
-void SSurfaceState::updateSynchronousTexture(SP<ITexture> lastTexture) {
+void SSurfaceState::updateSynchronousTexture(SP<Render::ITexture> lastTexture) {
auto [dataPtr, fmt, size] = buffer->beginDataPtr(0);
if (dataPtr) {
auto drmFmt = NFormatUtils::shmToDRM(fmt);
diff --git a/src/protocols/types/SurfaceState.hpp b/src/protocols/types/SurfaceState.hpp
index d5b7e4b9..9a12a080 100644
--- a/src/protocols/types/SurfaceState.hpp
+++ b/src/protocols/types/SurfaceState.hpp
@@ -6,7 +6,9 @@
#include "../WaylandProtocol.hpp"
#include "./Buffer.hpp"
-class ITexture;
+namespace Render {
+ class ITexture;
+}
class CDRMSyncPointState;
class CWLCallbackResource;
@@ -88,8 +90,8 @@ struct SSurfaceState {
eLockReason lockMask = LOCK_REASON_NONE;
// texture of surface content, used for rendering
- SP<ITexture> texture;
- void updateSynchronousTexture(SP<ITexture> lastTexture);
+ SP<Render::ITexture> texture;
+ void updateSynchronousTexture(SP<Render::ITexture> lastTexture);
// fifo
bool barrierSet = false;