2022-02-05 17:00:25 +00:00
|
|
|
/*
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2022-04-06 14:36:22 +00:00
|
|
|
void OutputLayer::aboutToStartPainting(const QRegion &damage)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool OutputLayer::scanout(SurfaceItem *surfaceItem)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-02-05 17:00:25 +00:00
|
|
|
} // namespace KWin
|