WaylandOutput: Remove unused rendered attribute
This commit is contained in:
parent
885e9acb6e
commit
39f45ad70f
3 changed files with 1 additions and 17 deletions
|
@ -823,8 +823,6 @@ WaylandOutput *WaylandBackend::createOutput(const QString &name, const QPoint &p
|
||||||
|
|
||||||
waylandOutput->init(position, size);
|
waylandOutput->init(position, size);
|
||||||
connect(waylandOutput, &WaylandOutput::frameRendered, this, [waylandOutput]() {
|
connect(waylandOutput, &WaylandOutput::frameRendered, this, [waylandOutput]() {
|
||||||
waylandOutput->resetRendered();
|
|
||||||
|
|
||||||
// The current time of the monotonic clock is a pretty good estimate when the frame
|
// The current time of the monotonic clock is a pretty good estimate when the frame
|
||||||
// has been presented, however it will be much better if we check whether the host
|
// has been presented, however it will be much better if we check whether the host
|
||||||
// compositor supports the wp_presentation protocol.
|
// compositor supports the wp_presentation protocol.
|
||||||
|
|
|
@ -36,10 +36,7 @@ WaylandOutput::WaylandOutput(const QString &name, Surface *surface, WaylandBacke
|
||||||
.capabilities = Capability::Dpms,
|
.capabilities = Capability::Dpms,
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(surface, &Surface::frameRendered, this, [this] {
|
connect(surface, &Surface::frameRendered, this, &WaylandOutput::frameRendered);
|
||||||
m_rendered = true;
|
|
||||||
Q_EMIT frameRendered();
|
|
||||||
});
|
|
||||||
m_turnOffTimer.setSingleShot(true);
|
m_turnOffTimer.setSingleShot(true);
|
||||||
m_turnOffTimer.setInterval(dimAnimationTime());
|
m_turnOffTimer.setInterval(dimAnimationTime());
|
||||||
connect(&m_turnOffTimer, &QTimer::timeout, this, [this] {
|
connect(&m_turnOffTimer, &QTimer::timeout, this, [this] {
|
||||||
|
|
|
@ -70,15 +70,6 @@ public:
|
||||||
return m_surface;
|
return m_surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool rendered() const
|
|
||||||
{
|
|
||||||
return m_rendered;
|
|
||||||
}
|
|
||||||
void resetRendered()
|
|
||||||
{
|
|
||||||
m_rendered = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
void updateEnablement(bool enable) override;
|
void updateEnablement(bool enable) override;
|
||||||
void setDpmsMode(DpmsMode mode) override;
|
void setDpmsMode(DpmsMode mode) override;
|
||||||
|
|
||||||
|
@ -97,8 +88,6 @@ private:
|
||||||
KWayland::Client::Surface *m_surface;
|
KWayland::Client::Surface *m_surface;
|
||||||
WaylandBackend *m_backend;
|
WaylandBackend *m_backend;
|
||||||
QTimer m_turnOffTimer;
|
QTimer m_turnOffTimer;
|
||||||
|
|
||||||
bool m_rendered = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class XdgShellOutput : public WaylandOutput
|
class XdgShellOutput : public WaylandOutput
|
||||||
|
|
Loading…
Reference in a new issue