backends/drm: remove unneeded methods in DrmBackend
This commit is contained in:
parent
5d5bb2422c
commit
9781f43a48
2 changed files with 2 additions and 8 deletions
|
@ -48,12 +48,6 @@ public:
|
||||||
|
|
||||||
Outputs outputs() const override;
|
Outputs outputs() const override;
|
||||||
Outputs enabledOutputs() const override;
|
Outputs enabledOutputs() const override;
|
||||||
QVector<DrmAbstractOutput*> drmOutputs() const {
|
|
||||||
return m_outputs;
|
|
||||||
}
|
|
||||||
QVector<DrmAbstractOutput*> drmEnabledOutputs() const {
|
|
||||||
return m_enabledOutputs;
|
|
||||||
}
|
|
||||||
|
|
||||||
void enableOutput(DrmAbstractOutput *output, bool enable);
|
void enableOutput(DrmAbstractOutput *output, bool enable);
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@ DrmQPainterBackend::DrmQPainterBackend(DrmBackend *backend, DrmGpu *gpu)
|
||||||
, m_backend(backend)
|
, m_backend(backend)
|
||||||
, m_gpu(gpu)
|
, m_gpu(gpu)
|
||||||
{
|
{
|
||||||
const auto outputs = m_backend->drmOutputs();
|
const auto outputs = m_backend->enabledOutputs();
|
||||||
for (auto output: outputs) {
|
for (auto output: outputs) {
|
||||||
initOutput(output);
|
initOutput(static_cast<DrmAbstractOutput*>(output));
|
||||||
}
|
}
|
||||||
connect(m_gpu, &DrmGpu::outputEnabled, this, &DrmQPainterBackend::initOutput);
|
connect(m_gpu, &DrmGpu::outputEnabled, this, &DrmQPainterBackend::initOutput);
|
||||||
connect(m_gpu, &DrmGpu::outputDisabled, this,
|
connect(m_gpu, &DrmGpu::outputDisabled, this,
|
||||||
|
|
Loading…
Reference in a new issue