Commit 53796aac authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

platforms/drm: Remove unused parameter in DrmCrtc constructor

parent d883cccf
......@@ -171,7 +171,7 @@ bool DrmGpu::updateOutputs()
const uint32_t currentCrtc = resources->crtcs[i];
auto it = std::find_if(m_crtcs.constBegin(), m_crtcs.constEnd(), [currentCrtc] (DrmCrtc *c) { return c->id() == currentCrtc; });
if (it == m_crtcs.constEnd()) {
auto c = new DrmCrtc(this, currentCrtc, m_backend, i);
auto c = new DrmCrtc(this, currentCrtc, i);
if (!c->init()) {
delete c;
continue;
......
......@@ -17,11 +17,10 @@
namespace KWin
{
DrmCrtc::DrmCrtc(DrmGpu *gpu, uint32_t crtcId, DrmBackend *backend, int resIndex)
: DrmObject(gpu, crtc_id)
DrmCrtc::DrmCrtc(DrmGpu *gpu, uint32_t crtcId, int resIndex)
: DrmObject(gpu, crtcId)
, m_crtc(drmModeGetCrtc(gpu->fd(), crtcId))
, m_resIndex(resIndex)
, m_backend(backend)
{
}
......
......@@ -25,7 +25,7 @@ class DrmGpu;
class DrmCrtc : public DrmObject
{
public:
DrmCrtc(DrmGpu *gpu, uint32_t crtcId, DrmBackend *backend, int resIndex);
DrmCrtc(DrmGpu *gpu, uint32_t crtcId, int resIndex);
bool init() override;
......@@ -64,7 +64,6 @@ private:
QSharedPointer<DrmBuffer> m_currentBuffer;
QSharedPointer<DrmBuffer> m_nextBuffer;
DrmDumbBuffer *m_blackBuffer = nullptr;
DrmBackend *m_backend;
};
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment