From d9cad5e1b63f2e1e86eb54551c72d17ee4dd070d Mon Sep 17 00:00:00 2001 From: davc0n Date: Sat, 3 May 2025 16:02:49 +0200 Subject: protocols: refactor class member vars (core) (#10259) --- src/helpers/Monitor.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/helpers/Monitor.cpp') diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 2edba78a..043cd5cc 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -1368,20 +1368,20 @@ bool CMonitor::attemptDirectScanout() { const auto PSURFACE = g_pXWaylandManager->getWindowSurface(PCANDIDATE); - if (!PSURFACE || !PSURFACE->current.texture || !PSURFACE->current.buffer) + if (!PSURFACE || !PSURFACE->m_current.texture || !PSURFACE->m_current.buffer) return false; - if (PSURFACE->current.bufferSize != m_pixelSize || PSURFACE->current.transform != m_transform) + if (PSURFACE->m_current.bufferSize != m_pixelSize || PSURFACE->m_current.transform != m_transform) return false; // we can't scanout shm buffers. - const auto params = PSURFACE->current.buffer->dmabuf(); - if (!params.success || !PSURFACE->current.texture->m_pEglImage /* dmabuf */) + const auto params = PSURFACE->m_current.buffer->dmabuf(); + if (!params.success || !PSURFACE->m_current.texture->m_pEglImage /* dmabuf */) return false; - Debug::log(TRACE, "attemptDirectScanout: surface {:x} passed, will attempt, buffer {}", (uintptr_t)PSURFACE.get(), (uintptr_t)PSURFACE->current.buffer.buffer.get()); + Debug::log(TRACE, "attemptDirectScanout: surface {:x} passed, will attempt, buffer {}", (uintptr_t)PSURFACE.get(), (uintptr_t)PSURFACE->m_current.buffer.buffer.get()); - auto PBUFFER = PSURFACE->current.buffer.buffer; + auto PBUFFER = PSURFACE->m_current.buffer.buffer; if (PBUFFER == m_output->state->state().buffer) { PSURFACE->presentFeedback(Time::steadyNow(), m_self.lock()); @@ -1427,7 +1427,7 @@ bool CMonitor::attemptDirectScanout() { PSURFACE->presentFeedback(Time::steadyNow(), m_self.lock()); - m_output->state->addDamage(PSURFACE->current.accumulateBufferDamage()); + m_output->state->addDamage(PSURFACE->m_current.accumulateBufferDamage()); m_output->state->resetExplicitFences(); // no need to do explicit sync here as surface current can only ever be ready to read -- cgit v1.2.3