Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/remoteaccess_manager.h
Show All 27 Lines | |||||
28 | 28 | | |||
29 | struct gbm_bo; | 29 | struct gbm_bo; | ||
30 | struct gbm_surface; | 30 | struct gbm_surface; | ||
31 | 31 | | |||
32 | namespace KWin | 32 | namespace KWin | ||
33 | { | 33 | { | ||
34 | 34 | | |||
35 | class DrmOutput; | 35 | class DrmOutput; | ||
36 | class DrmBuffer; | 36 | class DrmSurfaceBuffer; | ||
37 | 37 | | |||
38 | using KWayland::Server::RemoteAccessManagerInterface; | 38 | using KWayland::Server::RemoteAccessManagerInterface; | ||
39 | using KWayland::Server::BufferHandle; | 39 | using KWayland::Server::BufferHandle; | ||
40 | 40 | | |||
41 | class RemoteAccessManager : public QObject | 41 | class RemoteAccessManager : public QObject | ||
42 | { | 42 | { | ||
43 | Q_OBJECT | 43 | Q_OBJECT | ||
44 | public: | 44 | public: | ||
45 | explicit RemoteAccessManager(QObject *parent = nullptr); | 45 | explicit RemoteAccessManager(QObject *parent = nullptr); | ||
46 | ~RemoteAccessManager() override; | 46 | ~RemoteAccessManager() override; | ||
47 | 47 | | |||
48 | void passBuffer(DrmOutput *output, DrmBuffer *buffer); | 48 | void passBuffer(DrmOutput *output, DrmSurfaceBuffer *gbmbuf); | ||
zzag: Coding style: whitespace before `*`. | |||||
49 | 49 | | |||
50 | signals: | 50 | signals: | ||
51 | void bufferNoLongerNeeded(qint32 gbm_handle); | 51 | void bufferNoLongerNeeded(qint32 gbm_handle); | ||
52 | 52 | | |||
53 | private: | 53 | private: | ||
54 | void releaseBuffer(const BufferHandle *buf); | 54 | void releaseBuffer(const BufferHandle *buf); | ||
55 | 55 | | |||
56 | RemoteAccessManagerInterface *m_interface = nullptr; | 56 | RemoteAccessManagerInterface *m_interface = nullptr; | ||
57 | }; | 57 | }; | ||
58 | 58 | | |||
59 | } // KWin namespace | 59 | } // KWin namespace | ||
60 | 60 | | |||
61 | #endif // REMOTEACCESSMANAGER_H | 61 | #endif // REMOTEACCESSMANAGER_H |
Coding style: whitespace before *.