summaryrefslogtreecommitdiff
path: root/src/protocols/PresentationTime.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-08-30 15:50:25 +0200
committerVaxry <vaxry@vaxry.net>2024-08-30 15:53:45 +0200
commitfbd63543930417f3cefe36bdb9f2cdd20fc3693a (patch)
treef55748b6e99de9e26fabad4bcad03883a2b83daf /src/protocols/PresentationTime.hpp
parentfd8d8e122ed9cf49f3f84d4d264f1b810c355a07 (diff)
presentation-feedback: minor fixups
Diffstat (limited to 'src/protocols/PresentationTime.hpp')
-rw-r--r--src/protocols/PresentationTime.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/protocols/PresentationTime.hpp b/src/protocols/PresentationTime.hpp
index 2c6ce3e9..06c71c9a 100644
--- a/src/protocols/PresentationTime.hpp
+++ b/src/protocols/PresentationTime.hpp
@@ -14,15 +14,17 @@ class CQueuedPresentationData {
CQueuedPresentationData(SP<CWLSurfaceResource> surf);
void setPresentationType(bool zeroCopy);
- void attachMonitor(CMonitor* pMonitor);
+ void attachMonitor(SP<CMonitor> pMonitor);
void presented();
void discarded();
+ bool done = false;
+
private:
bool wasPresented = false;
bool zeroCopy = false;
- CMonitor* pMonitor = nullptr;
+ WP<CMonitor> pMonitor;
WP<CWLSurfaceResource> surface;
DYNLISTENER(destroySurface);
@@ -53,7 +55,7 @@ class CPresentationProtocol : public IWaylandProtocol {
virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id);
- void onPresented(CMonitor* pMonitor, timespec* when, uint32_t untilRefreshNs, uint64_t seq, uint32_t reportedFlags);
+ void onPresented(SP<CMonitor> pMonitor, timespec* when, uint32_t untilRefreshNs, uint64_t seq, uint32_t reportedFlags);
void queueData(SP<CQueuedPresentationData> data);
private: