summaryrefslogtreecommitdiff
path: root/src/protocols/LinuxDMABUF.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-10-26 02:06:13 +0100
committerVaxry <vaxry@vaxry.net>2024-10-26 02:06:13 +0100
commitd5689bb53935ff1adbbfc9fdf5b1f542ce39efb2 (patch)
tree9df10d93160b5f6dc8c087d56b6face18809b56a /src/protocols/LinuxDMABUF.hpp
parente5384774a8258e44cc7f7b690ce4f6ad1f92b562 (diff)
internal: cleanup CMonitor usage and fix a few ref hogs
ref #8221
Diffstat (limited to 'src/protocols/LinuxDMABUF.hpp')
-rw-r--r--src/protocols/LinuxDMABUF.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/protocols/LinuxDMABUF.hpp b/src/protocols/LinuxDMABUF.hpp
index 0e25cdc6..e4941a6d 100644
--- a/src/protocols/LinuxDMABUF.hpp
+++ b/src/protocols/LinuxDMABUF.hpp
@@ -48,13 +48,13 @@ struct SDMABUFTranche {
class CDMABUFFormatTable {
public:
- CDMABUFFormatTable(SDMABUFTranche rendererTranche, std::vector<std::pair<SP<CMonitor>, SDMABUFTranche>> tranches);
+ CDMABUFFormatTable(SDMABUFTranche rendererTranche, std::vector<std::pair<PHLMONITORREF, SDMABUFTranche>> tranches);
~CDMABUFFormatTable();
- int tableFD = -1;
- size_t tableSize = 0;
- SDMABUFTranche rendererTranche;
- std::vector<std::pair<SP<CMonitor>, SDMABUFTranche>> monitorTranches;
+ int tableFD = -1;
+ size_t tableSize = 0;
+ SDMABUFTranche rendererTranche;
+ std::vector<std::pair<PHLMONITORREF, SDMABUFTranche>> monitorTranches;
};
class CLinuxDMABBUFParamsResource {
@@ -111,7 +111,7 @@ class CLinuxDMABufV1Protocol : public IWaylandProtocol {
~CLinuxDMABufV1Protocol();
virtual void bindManager(wl_client* client, void* data, uint32_t ver, uint32_t id);
- void updateScanoutTranche(SP<CWLSurfaceResource> surface, SP<CMonitor> pMonitor);
+ void updateScanoutTranche(SP<CWLSurfaceResource> surface, PHLMONITOR pMonitor);
private:
void destroyResource(CLinuxDMABUFResource* resource);