summaryrefslogtreecommitdiff
path: root/src/protocols/LinuxDMABUF.cpp
diff options
context:
space:
mode:
authordavc0n <dconti.dev@gmail.com>2025-05-03 18:54:50 +0200
committerGitHub <noreply@github.com>2025-05-03 18:54:50 +0200
commit46ac115bd19ee3aff5c816033de0b1d55a74e33f (patch)
treea731c290e62451d026c809b5bdd22c8034488208 /src/protocols/LinuxDMABUF.cpp
parent3465efcdc1d15402ca23e7ce609905c5814fb9ee (diff)
protocols: refactor class member vars (types) (#10261)
Diffstat (limited to 'src/protocols/LinuxDMABUF.cpp')
-rw-r--r--src/protocols/LinuxDMABUF.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/protocols/LinuxDMABUF.cpp b/src/protocols/LinuxDMABUF.cpp
index 2a067bf7..189a2555 100644
--- a/src/protocols/LinuxDMABUF.cpp
+++ b/src/protocols/LinuxDMABUF.cpp
@@ -99,20 +99,20 @@ CDMABUFFormatTable::CDMABUFFormatTable(SDMABUFTranche _rendererTranche, std::vec
CLinuxDMABuffer::CLinuxDMABuffer(uint32_t id, wl_client* client, Aquamarine::SDMABUFAttrs attrs) {
buffer = makeShared<CDMABuffer>(id, client, attrs);
- buffer->resource->buffer = buffer;
+ buffer->m_resource->m_buffer = buffer;
listeners.bufferResourceDestroy = buffer->events.destroy.registerListener([this](std::any d) {
listeners.bufferResourceDestroy.reset();
PROTO::linuxDma->destroyResource(this);
});
- if (!buffer->success)
+ if (!buffer->m_success)
LOGM(ERR, "Possibly compositor bug: buffer failed to create");
}
CLinuxDMABuffer::~CLinuxDMABuffer() {
- if (buffer && buffer->resource)
- buffer->resource->sendRelease();
+ if (buffer && buffer->m_resource)
+ buffer->m_resource->sendRelease();
buffer.reset();
listeners.bufferResourceDestroy.reset();
@@ -219,14 +219,14 @@ void CLinuxDMABUFParamsResource::create(uint32_t id) {
auto buf = PROTO::linuxDma->m_vBuffers.emplace_back(makeShared<CLinuxDMABuffer>(id, resource->client(), *attrs));
- if UNLIKELY (!buf->good() || !buf->buffer->success) {
+ if UNLIKELY (!buf->good() || !buf->buffer->m_success) {
resource->sendFailed();
PROTO::linuxDma->m_vBuffers.pop_back();
return;
}
if (!id)
- resource->sendCreated(PROTO::linuxDma->m_vBuffers.back()->buffer->resource->getResource());
+ resource->sendCreated(PROTO::linuxDma->m_vBuffers.back()->buffer->m_resource->getResource());
createdBuffer = buf;
}