protocols: refactor class member vars (n-t) (#10273)

This commit is contained in:
davc0n 2025-05-04 19:21:36 +02:00 committed by GitHub
parent adbae0f74d
commit 2626f89ea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 1507 additions and 1511 deletions

View file

@ -19,13 +19,13 @@ class CQueuedPresentationData {
void presented();
void discarded();
bool done = false;
bool m_done = false;
private:
bool wasPresented = false;
bool zeroCopy = false;
PHLMONITORREF pMonitor;
WP<CWLSurfaceResource> surface;
bool m_wasPresented = false;
bool m_zeroCopy = false;
PHLMONITORREF m_monitor;
WP<CWLSurfaceResource> m_surface;
friend class CPresentationFeedback;
friend class CPresentationProtocol;
@ -40,9 +40,9 @@ class CPresentationFeedback {
void sendQueued(SP<CQueuedPresentationData> data, const Time::steady_tp& when, uint32_t untilRefreshNs, uint64_t seq, uint32_t reportedFlags);
private:
SP<CWpPresentationFeedback> resource;
WP<CWLSurfaceResource> surface;
bool done = false;
SP<CWpPresentationFeedback> m_resource;
WP<CWLSurfaceResource> m_surface;
bool m_done = false;
friend class CPresentationProtocol;
};
@ -62,9 +62,9 @@ class CPresentationProtocol : public IWaylandProtocol {
void onGetFeedback(CWpPresentation* pMgr, wl_resource* surf, uint32_t id);
//
std::vector<UP<CWpPresentation>> m_vManagers;
std::vector<SP<CPresentationFeedback>> m_vFeedbacks;
std::vector<SP<CQueuedPresentationData>> m_vQueue;
std::vector<UP<CWpPresentation>> m_managers;
std::vector<SP<CPresentationFeedback>> m_feedbacks;
std::vector<SP<CQueuedPresentationData>> m_queue;
friend class CPresentationFeedback;
};