core/output: remove direct scanout inhibition
It's not used anywhere
This commit is contained in:
parent
b2f181fe80
commit
64e0b693c7
3 changed files with 1 additions and 22 deletions
|
@ -184,7 +184,7 @@ void Compositor::composite(RenderLoop *renderLoop)
|
|||
const bool scanoutPossible = std::none_of(sublayers.begin(), sublayers.end(), [](RenderLayer *sublayer) {
|
||||
return sublayer->isVisible();
|
||||
});
|
||||
if (scanoutPossible && !output->directScanoutInhibited()) {
|
||||
if (scanoutPossible) {
|
||||
directScanout = primaryLayer->scanout(scanoutCandidate);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -401,21 +401,6 @@ bool Output::isInternal() const
|
|||
return m_information.internal;
|
||||
}
|
||||
|
||||
void Output::inhibitDirectScanout()
|
||||
{
|
||||
m_directScanoutCount++;
|
||||
}
|
||||
|
||||
void Output::uninhibitDirectScanout()
|
||||
{
|
||||
m_directScanoutCount--;
|
||||
}
|
||||
|
||||
bool Output::directScanoutInhibited() const
|
||||
{
|
||||
return m_directScanoutCount;
|
||||
}
|
||||
|
||||
std::chrono::milliseconds Output::dimAnimationTime()
|
||||
{
|
||||
// See kscreen.kcfg
|
||||
|
|
|
@ -290,11 +290,6 @@ public:
|
|||
*/
|
||||
virtual RenderLoop *renderLoop() const = 0;
|
||||
|
||||
void inhibitDirectScanout();
|
||||
void uninhibitDirectScanout();
|
||||
|
||||
bool directScanoutInhibited() const;
|
||||
|
||||
/**
|
||||
* @returns the configured time for an output to dim
|
||||
*
|
||||
|
@ -477,7 +472,6 @@ protected:
|
|||
State m_state;
|
||||
Information m_information;
|
||||
QUuid m_uuid;
|
||||
int m_directScanoutCount = 0;
|
||||
int m_refCount = 1;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue