KWin
Loading...
Searching...
No Matches
qpainterbackend.cpp
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2013 Martin Gräßlin <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
11#include "utils/common.h"
12
13#include <QtGlobal>
14
15namespace KWin
16{
17
19 : m_failed(false)
20{
21}
22
26
31
32std::unique_ptr<SurfaceTexture> QPainterBackend::createSurfaceTextureWayland(SurfacePixmap *pixmap)
33{
34 return std::make_unique<QPainterSurfaceTextureWayland>(this, pixmap);
35}
36
37void QPainterBackend::setFailed(const QString &reason)
38{
39 qCWarning(KWIN_QPAINTER) << "Creating the QPainter backend failed: " << reason;
40 m_failed = true;
41}
42
43}
44
45#include "moc_qpainterbackend.cpp"
void setFailed(const QString &reason)
Sets the backend initialization to failed.
CompositingType compositingType() const override final
std::unique_ptr< SurfaceTexture > createSurfaceTextureWayland(SurfacePixmap *pixmap) override
CompositingType
Definition globals.h:28
@ QPainterCompositing
Definition globals.h:39