platforms/drm: Remove unused parameter in DrmCrtc constructor
This commit is contained in:
parent
d883cccfd3
commit
53796aacb2
3 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue