Debian Codegraph @

src/plugins/platforms/eglfs/deviceintegration/eglfs_openwfd/qeglfsopenwfdintegration.h

raw
1 // Copyright (C) 2017 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4 #ifndef QEGLFSOPENWFDINTEGRATION_H
5 #define QEGLFSOPENWFDINTEGRATION_H
6
7 #include "private/qeglfsdeviceintegration_p.h"
8 #define WFD_WFDEXT_PROTOTYPES
9 #include "wfd.h"
10 #include "wfdext2.h"
11
12 QT_BEGIN_NAMESPACE
13
14 class QEglFSOpenWFDIntegration : public QEglFSDeviceIntegration
15 {
16 public:
17 void platformInit() override;
18 void platformDestroy() override;
19 QSize screenSize() const override;
20 EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
21 void destroyNativeWindow(EGLNativeWindowType window) override;
22 EGLNativeDisplayType platformDisplay() const override;
23 virtual QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const;
24
25 private:
26 QSize mScreenSize;
27 EGLNativeDisplayType mNativeDisplay;
28 WFDDevice mDevice;
29 WFDPort mPort;
30 WFDPipeline mPipeline;
31 };
32
33 QT_END_NAMESPACE
34
35 #endif