Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.h
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Line(s) | 105 | private: | |||
---|---|---|---|---|---|
131 | void dpmsOffHandler(); | 131 | void dpmsOffHandler(); | ||
132 | bool dpmsAtomicOff(); | 132 | bool dpmsAtomicOff(); | ||
133 | bool atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | 133 | bool atomicReqModesetPopulate(drmModeAtomicReq *req, bool enable); | ||
134 | void updateMode(int modeIndex); | 134 | void updateMode(int modeIndex); | ||
135 | 135 | | |||
136 | void transform(KWayland::Server::OutputDeviceInterface::Transform transform); | 136 | void transform(KWayland::Server::OutputDeviceInterface::Transform transform); | ||
137 | void automaticRotation(); | 137 | void automaticRotation(); | ||
138 | 138 | | |||
139 | int getGammaRampSize() const override; | ||||
140 | bool setGammaRamp(ColorCorrect::GammaRamp &gamma) override; | ||||
zzag: Shouldn't the `gamma` parameter be const? | |||||
141 | | ||||
139 | DrmBackend *m_backend; | 142 | DrmBackend *m_backend; | ||
140 | DrmConnector *m_conn = nullptr; | 143 | DrmConnector *m_conn = nullptr; | ||
141 | DrmCrtc *m_crtc = nullptr; | 144 | DrmCrtc *m_crtc = nullptr; | ||
142 | bool m_lastGbm = false; | 145 | bool m_lastGbm = false; | ||
143 | drmModeModeInfo m_mode; | 146 | drmModeModeInfo m_mode; | ||
144 | Edid m_edid; | 147 | Edid m_edid; | ||
145 | KWin::ScopedDrmPointer<_drmModeProperty, &drmModeFreeProperty> m_dpms; | 148 | KWin::ScopedDrmPointer<_drmModeProperty, &drmModeFreeProperty> m_dpms; | ||
146 | DpmsMode m_dpmsMode = DpmsMode::On; | 149 | DpmsMode m_dpmsMode = DpmsMode::On; | ||
Show All 29 Lines |
Shouldn't the gamma parameter be const?