kwin/src/renderbackend.cpp
Vlad Zahorodnii 203d7b3b8a Move direct scanout management to Compositor
The responsibilities of the Scene must be reduced to painting only so we
can move forward with the layer-based compositing.

This change moves direct scanout logic from the opengl scene to the base
scene class and the compositor. It makes the opengl scene less
overloaded and allows to share direct scanout logic.
2022-02-21 09:33:59 +00:00

34 lines
557 B
C++

/*
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "renderbackend.h"
namespace KWin
{
RenderBackend::RenderBackend(QObject *parent)
: QObject(parent)
{
}
OverlayWindow *RenderBackend::overlayWindow() const
{
return nullptr;
}
bool RenderBackend::checkGraphicsReset()
{
return false;
}
bool RenderBackend::scanout(AbstractOutput *output, SurfaceItem *surfaceItem)
{
Q_UNUSED(output)
Q_UNUSED(surfaceItem)
return false;
}
} // namespace KWin