KWin
Loading...
Searching...
No Matches
offscreensurface.h
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: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include <epoxy/egl.h>
13
14#include <qpa/qplatformoffscreensurface.h>
15
16namespace KWin
17{
18
19class EglDisplay;
20
21namespace QPA
22{
23
24class OffscreenSurface : public QPlatformOffscreenSurface
25{
26public:
27 explicit OffscreenSurface(QOffscreenSurface *surface);
28
29 QSurfaceFormat format() const override;
30 bool isValid() const override;
31
32private:
33 QSurfaceFormat m_format;
34};
35
36} // namespace QPA
37} // namespace KWin
QSurfaceFormat format() const override
OffscreenSurface(QOffscreenSurface *surface)
bool isValid() const override