mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 21:51:55 -07:00
protocols: refactor class member vars (types) (#10261)
This commit is contained in:
@@ -1379,9 +1379,9 @@ bool CMonitor::attemptDirectScanout() {
|
||||
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->m_current.buffer.buffer.get());
|
||||
Debug::log(TRACE, "attemptDirectScanout: surface {:x} passed, will attempt, buffer {}", (uintptr_t)PSURFACE.get(), (uintptr_t)PSURFACE->m_current.buffer.m_buffer.get());
|
||||
|
||||
auto PBUFFER = PSURFACE->m_current.buffer.buffer;
|
||||
auto PBUFFER = PSURFACE->m_current.buffer.m_buffer;
|
||||
|
||||
if (PBUFFER == m_output->state->state().buffer) {
|
||||
PSURFACE->presentFeedback(Time::steadyNow(), m_self.lock());
|
||||
@@ -1447,7 +1447,7 @@ bool CMonitor::attemptDirectScanout() {
|
||||
|
||||
m_scanoutNeedsCursorUpdate = false;
|
||||
|
||||
if (!PBUFFER->lockedByBackend || PBUFFER->hlEvents.backendRelease)
|
||||
if (!PBUFFER->lockedByBackend || PBUFFER->m_hlEvents.backendRelease)
|
||||
return true;
|
||||
|
||||
// lock buffer while DRM/KMS is using it, then release it when page flip happens since DRM/KMS should be done by then
|
||||
|
Reference in New Issue
Block a user