Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_object_crtc.h
- This file was copied to plugins/platforms/drm/drm_buffer_gbm.h.
Show All 21 Lines | |||||
22 | 22 | | |||
23 | #include "drm_object.h" | 23 | #include "drm_object.h" | ||
24 | 24 | | |||
25 | namespace KWin | 25 | namespace KWin | ||
26 | { | 26 | { | ||
27 | 27 | | |||
28 | class DrmBackend; | 28 | class DrmBackend; | ||
29 | class DrmBuffer; | 29 | class DrmBuffer; | ||
30 | class DrmDumbBuffer; | ||||
30 | 31 | | |||
31 | class DrmCrtc : public DrmObject | 32 | class DrmCrtc : public DrmObject | ||
32 | { | 33 | { | ||
33 | public: | 34 | public: | ||
34 | DrmCrtc(uint32_t crtc_id, int fd, int resIndex); | 35 | DrmCrtc(uint32_t crtc_id, int fd, int resIndex); | ||
35 | 36 | | |||
36 | virtual ~DrmCrtc(); | 37 | virtual ~DrmCrtc(); | ||
37 | 38 | | |||
Show All 25 Lines | |||||
63 | bool blank(); | 64 | bool blank(); | ||
64 | 65 | | |||
65 | private: | 66 | private: | ||
66 | DrmBackend *m_backend; | 67 | DrmBackend *m_backend; | ||
67 | int m_resIndex; | 68 | int m_resIndex; | ||
68 | 69 | | |||
69 | DrmBuffer *m_currentBuffer = nullptr; | 70 | DrmBuffer *m_currentBuffer = nullptr; | ||
70 | DrmBuffer *m_nextBuffer = nullptr; | 71 | DrmBuffer *m_nextBuffer = nullptr; | ||
71 | DrmBuffer *m_blackBuffer = nullptr; | 72 | DrmDumbBuffer *m_blackBuffer = nullptr; | ||
72 | }; | 73 | }; | ||
73 | 74 | | |||
74 | } | 75 | } | ||
75 | 76 | | |||
76 | #endif | 77 | #endif | ||
77 | 78 | |