You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
909 B
42 lines
909 B
/* |
|
KWin - the KDE window manager |
|
This file is part of the KDE project. |
|
|
|
SPDX-FileCopyrightText: 2011 Arthur Arlt <a.arlt@stud.uni-heidelberg.de> |
|
SPDX-FileCopyrightText: 2012 Martin Gräßlin <mgraesslin@kde.org> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include "compositor.h" |
|
#include "effect/globals.h" |
|
|
|
namespace KWin |
|
{ |
|
|
|
class KWIN_EXPORT WaylandCompositor final : public Compositor |
|
{ |
|
Q_OBJECT |
|
public: |
|
static WaylandCompositor *create(QObject *parent = nullptr); |
|
~WaylandCompositor() override; |
|
|
|
protected: |
|
void start() override; |
|
void stop() override; |
|
|
|
private: |
|
explicit WaylandCompositor(QObject *parent); |
|
|
|
bool attemptOpenGLCompositing(); |
|
bool attemptQPainterCompositing(); |
|
|
|
void addOutput(Output *output); |
|
void removeOutput(Output *output); |
|
|
|
CompositingType m_selectedCompositor = NoCompositing; |
|
}; |
|
|
|
} // namespace KWin
|
|
|