Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_object_crtc.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | class DrmBackend; | 28 | class DrmBackend; | ||
29 | class DrmBuffer; | 29 | class DrmBuffer; | ||
30 | class DrmDumbBuffer; | 30 | class DrmDumbBuffer; | ||
31 | 31 | | |||
32 | class DrmCrtc : public DrmObject | 32 | class DrmCrtc : public DrmObject | ||
33 | { | 33 | { | ||
34 | public: | 34 | public: | ||
35 | DrmCrtc(uint32_t crtc_id, int fd, int resIndex); | 35 | DrmCrtc(uint32_t crtc_id, DrmBackend *backend, int resIndex); | ||
36 | 36 | | |||
37 | virtual ~DrmCrtc(); | 37 | virtual ~DrmCrtc(); | ||
38 | 38 | | |||
39 | bool init(); | 39 | bool atomicInit(); | ||
40 | 40 | | |||
41 | enum class PropertyIndex { | 41 | enum class PropertyIndex { | ||
42 | ModeId = 0, | 42 | ModeId = 0, | ||
43 | Active, | 43 | Active, | ||
44 | Count | 44 | Count | ||
45 | }; | 45 | }; | ||
46 | 46 | | |||
47 | bool initProps(); | 47 | bool initProps(); | ||
Show All 11 Lines | |||||
59 | void setNext(DrmBuffer *buffer) { | 59 | void setNext(DrmBuffer *buffer) { | ||
60 | m_nextBuffer = buffer; | 60 | m_nextBuffer = buffer; | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | void flipBuffer(); | 63 | void flipBuffer(); | ||
64 | bool blank(); | 64 | bool blank(); | ||
65 | 65 | | |||
66 | private: | 66 | private: | ||
67 | DrmBackend *m_backend; | | |||
68 | int m_resIndex; | 67 | int m_resIndex; | ||
69 | 68 | | |||
70 | DrmBuffer *m_currentBuffer = nullptr; | 69 | DrmBuffer *m_currentBuffer = nullptr; | ||
71 | DrmBuffer *m_nextBuffer = nullptr; | 70 | DrmBuffer *m_nextBuffer = nullptr; | ||
72 | DrmDumbBuffer *m_blackBuffer = nullptr; | 71 | DrmDumbBuffer *m_blackBuffer = nullptr; | ||
73 | }; | 72 | }; | ||
74 | 73 | | |||
75 | } | 74 | } | ||
76 | 75 | | |||
77 | #endif | 76 | #endif | ||
78 | 77 | |