KWin
Loading...
Searching...
No Matches
src
plugins
qpa
offscreensurface.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: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
6
7
SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
10
#include "
offscreensurface.h
"
11
#include "
core/outputbackend.h
"
12
#include "
eglhelpers.h
"
13
#include "main.h"
14
#include "
opengl/egldisplay.h
"
15
16
#include <QOffscreenSurface>
17
18
namespace
KWin
19
{
20
namespace
QPA
21
{
22
23
OffscreenSurface::OffscreenSurface
(QOffscreenSurface *surface)
24
: QPlatformOffscreenSurface(surface)
25
, m_format(surface->requestedFormat())
26
{
27
}
28
29
QSurfaceFormat
OffscreenSurface::format
()
const
30
{
31
return
m_format;
32
}
33
34
bool
OffscreenSurface::isValid
()
const
35
{
36
return
true
;
37
}
38
39
}
// namespace QPA
40
}
// namespace KWin
KWin::QPA::OffscreenSurface::format
QSurfaceFormat format() const override
Definition
offscreensurface.cpp:29
KWin::QPA::OffscreenSurface::OffscreenSurface
OffscreenSurface(QOffscreenSurface *surface)
Definition
offscreensurface.cpp:23
KWin::QPA::OffscreenSurface::isValid
bool isValid() const override
Definition
offscreensurface.cpp:34
egldisplay.h
eglhelpers.h
KWin
Definition
activation_test.cpp:20
offscreensurface.h
outputbackend.h
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0