Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
94 | } | 94 | } | ||
95 | 95 | | |||
96 | bool initCursor(const QSize &cursorSize); | 96 | bool initCursor(const QSize &cursorSize); | ||
97 | 97 | | |||
98 | bool supportsTransformations() const; | 98 | bool supportsTransformations() const; | ||
99 | 99 | | |||
100 | Q_SIGNALS: | 100 | Q_SIGNALS: | ||
101 | void dpmsChanged(); | 101 | void dpmsChanged(); | ||
102 | void modeChanged(); | | |||
103 | 102 | | |||
104 | private: | 103 | private: | ||
105 | friend class DrmBackend; | 104 | friend class DrmBackend; | ||
106 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | 105 | friend class DrmCrtc; // TODO: For use of setModeLegacy. Remove later when we allow multiple connectors per crtc | ||
107 | // and save the connector ids in the DrmCrtc instance. | 106 | // and save the connector ids in the DrmCrtc instance. | ||
108 | DrmOutput(DrmBackend *backend); | 107 | DrmOutput(DrmBackend *backend); | ||
109 | 108 | | |||
110 | bool presentAtomically(DrmBuffer *buffer); | 109 | bool presentAtomically(DrmBuffer *buffer); | ||
Show All 16 Lines | |||||
127 | bool initPrimaryPlane(); | 126 | bool initPrimaryPlane(); | ||
128 | bool initCursorPlane(); | 127 | bool initCursorPlane(); | ||
129 | 128 | | |||
130 | void dpmsOnHandler(); | 129 | void dpmsOnHandler(); | ||
131 | void dpmsOffHandler(); | 130 | void dpmsOffHandler(); | ||
132 | bool dpmsAtomicOff(); | 131 | bool dpmsAtomicOff(); | ||
133 | bool atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | 132 | bool atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | ||
134 | void updateMode(int modeIndex) override; | 133 | void updateMode(int modeIndex) override; | ||
134 | void setWaylandMode(); | ||||
135 | 135 | | |||
136 | void transform(KWayland::Server::OutputDeviceInterface::Transform transform) override; | 136 | void transform(KWayland::Server::OutputDeviceInterface::Transform transform) override; | ||
137 | void automaticRotation(); | 137 | void automaticRotation(); | ||
138 | 138 | | |||
139 | int getGammaRampSize() const override; | 139 | int getGammaRampSize() const override; | ||
140 | bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) override; | 140 | bool setGammaRamp(const ColorCorrect::GammaRamp &gamma) override; | ||
141 | 141 | | |||
142 | DrmBackend *m_backend; | 142 | DrmBackend *m_backend; | ||
Show All 38 Lines |