203d7b3b8a
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.
34 lines
557 B
C++
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
|