KWin
Loading...
Searching...
No Matches
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
18namespace KWin
19{
20namespace QPA
21{
22
23OffscreenSurface::OffscreenSurface(QOffscreenSurface *surface)
24 : QPlatformOffscreenSurface(surface)
25 , m_format(surface->requestedFormat())
26{
27}
28
29QSurfaceFormat OffscreenSurface::format() const
30{
31 return m_format;
32}
33
35{
36 return true;
37}
38
39} // namespace QPA
40} // namespace KWin
QSurfaceFormat format() const override
OffscreenSurface(QOffscreenSurface *surface)
bool isValid() const override