From 2626f89ea6fe0df585df28052bf1fcca2c50fe8e Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 4 May 2025 19:21:36 +0200 Subject: protocols: refactor class member vars (n-t) (#10273) --- src/protocols/ToplevelExport.hpp | 49 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 25 deletions(-) (limited to 'src/protocols/ToplevelExport.hpp') diff --git a/src/protocols/ToplevelExport.hpp b/src/protocols/ToplevelExport.hpp index 907f6236..8ccd881b 100644 --- a/src/protocols/ToplevelExport.hpp +++ b/src/protocols/ToplevelExport.hpp @@ -17,20 +17,20 @@ class CToplevelExportClient { bool good(); - WP self; - eClientOwners clientOwner = CLIENT_TOPLEVEL_EXPORT; + WP m_self; + eClientOwners m_clientOwner = CLIENT_TOPLEVEL_EXPORT; - CTimer lastFrame; - int frameCounter = 0; + CTimer m_lastFrame; + int m_frameCounter = 0; private: - SP resource; + SP m_resource; - int framesInLastHalfSecond = 0; - CTimer lastMeasure; - bool sentScreencast = false; + int m_framesInLastHalfSecond = 0; + CTimer m_lastMeasure; + bool m_sentScreencast = false; - SP tickCallback; + SP m_tickCallback; void onTick(); void captureToplevel(CHyprlandToplevelExportManagerV1* pMgr, uint32_t frame, int32_t overlayCursor, PHLWINDOW handle); @@ -44,23 +44,22 @@ class CToplevelExportFrame { bool good(); - WP self; - WP client; + WP m_self; + WP m_client; private: - SP resource; + SP m_resource; - PHLWINDOW pWindow; - bool cursorOverlayRequested = false; - bool m_ignoreDamage = false; - bool lockedSWCursors = false; + PHLWINDOW m_window; + bool m_cursorOverlayRequested = false; + bool m_ignoreDamage = false; - CHLBufferReference buffer; - bool bufferDMA = false; - uint32_t shmFormat = 0; - uint32_t dmabufFormat = 0; - int shmStride = 0; - CBox box = {}; + CHLBufferReference m_buffer; + bool m_bufferDMA = false; + uint32_t m_shmFormat = 0; + uint32_t m_dmabufFormat = 0; + int m_shmStride = 0; + CBox m_box = {}; void copy(CHyprlandToplevelExportFrameV1* pFrame, wl_resource* buffer, int32_t ignoreDamage); bool copyDmabuf(const Time::steady_tp& now); @@ -83,9 +82,9 @@ class CToplevelExportProtocol : IWaylandProtocol { void onOutputCommit(PHLMONITOR pMonitor); private: - std::vector> m_vClients; - std::vector> m_vFrames; - std::vector> m_vFramesAwaitingWrite; + std::vector> m_clients; + std::vector> m_frames; + std::vector> m_framesAwaitingWrite; void shareFrame(CToplevelExportFrame* frame); bool copyFrameDmabuf(CToplevelExportFrame* frame, const Time::steady_tp& now); -- cgit v1.2.3