Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_object_crtc.h
Show All 19 Lines | |||||
20 | #ifndef KWIN_DRM_OBJECT_CRTC_H | 20 | #ifndef KWIN_DRM_OBJECT_CRTC_H | ||
21 | #define KWIN_DRM_OBJECT_CRTC_H | 21 | #define KWIN_DRM_OBJECT_CRTC_H | ||
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 DrmBuffer; | | |||
29 | | ||||
30 | class DrmCrtc : public DrmObject | 28 | class DrmCrtc : public DrmObject | ||
31 | { | 29 | { | ||
32 | public: | 30 | public: | ||
33 | DrmCrtc(uint32_t crtc_id, int fd); | 31 | DrmCrtc(uint32_t crtc_id, int fd, int resIndex); | ||
34 | 32 | | |||
35 | virtual ~DrmCrtc(); | 33 | virtual ~DrmCrtc(); | ||
36 | 34 | | |||
37 | bool init(); | 35 | bool init(); | ||
38 | 36 | | |||
39 | enum class PropertyIndex { | 37 | enum class PropertyIndex { | ||
40 | ModeId = 0, | 38 | ModeId = 0, | ||
41 | Active, | 39 | Active, | ||
42 | Count | 40 | Count | ||
43 | }; | 41 | }; | ||
44 | 42 | | |||
45 | bool initProps(); | 43 | bool initProps(); | ||
44 | | ||||
45 | int resIndex() const { | ||||
46 | return m_resIndex; | ||||
47 | } | ||||
48 | | ||||
49 | private: | ||||
50 | int m_resIndex; | ||||
46 | }; | 51 | }; | ||
47 | 52 | | |||
48 | } | 53 | } | ||
49 | 54 | | |||
50 | #endif | 55 | #endif | ||
51 | 56 | |