kwin/src/outputlayer.cpp
Vlad Zahorodnii 65ccfd336f Add dummy OutputLayer type
It's needed to make repaint scheduling in render layers simple.
2022-02-21 09:33:59 +00:00

32 lines
478 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 &region)
{
m_repaints += region;
}
void OutputLayer::resetRepaints()
{
m_repaints = QRegion();
}
} // namespace KWin