7358daa92c
This is in preparation to using multiple outputlayers per output
43 lines
667 B
C++
43 lines
667 B
C++
/*
|
|
SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "outputlayer.h"
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
OutputLayer::OutputLayer(QObject *parent)
|
|
: QObject(parent)
|
|
{
|
|
}
|
|
|
|
QRegion OutputLayer::repaints() const
|
|
{
|
|
return m_repaints;
|
|
}
|
|
|
|
void OutputLayer::addRepaint(const QRegion ®ion)
|
|
{
|
|
m_repaints += region;
|
|
}
|
|
|
|
void OutputLayer::resetRepaints()
|
|
{
|
|
m_repaints = QRegion();
|
|
}
|
|
|
|
void OutputLayer::aboutToStartPainting(const QRegion &damage)
|
|
{
|
|
Q_UNUSED(damage)
|
|
}
|
|
|
|
bool OutputLayer::scanout(SurfaceItem *surfaceItem)
|
|
{
|
|
Q_UNUSED(surfaceItem)
|
|
return false;
|
|
}
|
|
|
|
} // namespace KWin
|