diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-10-26 02:06:13 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-10-26 02:06:13 +0100 |
| commit | d5689bb53935ff1adbbfc9fdf5b1f542ce39efb2 (patch) | |
| tree | 9df10d93160b5f6dc8c087d56b6face18809b56a /src/protocols/PresentationTime.hpp | |
| parent | e5384774a8258e44cc7f7b690ce4f6ad1f92b562 (diff) | |
internal: cleanup CMonitor usage and fix a few ref hogs
ref #8221
Diffstat (limited to 'src/protocols/PresentationTime.hpp')
| -rw-r--r-- | src/protocols/PresentationTime.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocols/PresentationTime.hpp b/src/protocols/PresentationTime.hpp index 421bb838..d9b45448 100644 --- a/src/protocols/PresentationTime.hpp +++ b/src/protocols/PresentationTime.hpp @@ -14,7 +14,7 @@ class CQueuedPresentationData { CQueuedPresentationData(SP<CWLSurfaceResource> surf); void setPresentationType(bool zeroCopy); - void attachMonitor(SP<CMonitor> pMonitor); + void attachMonitor(PHLMONITOR pMonitor); void presented(); void discarded(); @@ -24,7 +24,7 @@ class CQueuedPresentationData { private: bool wasPresented = false; bool zeroCopy = false; - WP<CMonitor> pMonitor; + PHLMONITORREF pMonitor; WP<CWLSurfaceResource> surface; friend class CPresentationFeedback; @@ -53,7 +53,7 @@ class CPresentationProtocol : public IWaylandProtocol { virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id); - void onPresented(SP<CMonitor> pMonitor, timespec* when, uint32_t untilRefreshNs, uint64_t seq, uint32_t reportedFlags); + void onPresented(PHLMONITOR pMonitor, timespec* when, uint32_t untilRefreshNs, uint64_t seq, uint32_t reportedFlags); void queueData(SP<CQueuedPresentationData> data); private: |
