Debian Codegraph @

src/plugins/platforms/xcb/gl_integrations/xcb_egl/qxcbeglnativeinterfacehandler.h

raw
1 // Copyright (C) 2016 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 // Qt-Security score:significant reason:default
4
5 #pragma once
6
7 #include "qxcbnativeinterfacehandler.h"
8
9 QT_BEGIN_NAMESPACE
10
11 class QXcbEglNativeInterfaceHandler : public QXcbNativeInterfaceHandler
12 {
13 public:
14 enum ResourceType {
15 EglDisplay,
16 EglContext,
17 EglConfig
18 };
19
20 QXcbEglNativeInterfaceHandler(QXcbNativeInterface *nativeInterface);
21
22 QPlatformNativeInterface::NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) const override;
23 QPlatformNativeInterface::NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) const override;
24 QPlatformNativeInterface::NativeResourceForWindowFunction nativeResourceFunctionForWindow(const QByteArray &resource) const override;
25 private:
26 static void *eglDisplay();
27 static void *eglDisplayForWindow(QWindow *window);
28 static void *eglContextForContext(QOpenGLContext *context);
29 static void *eglConfigForContext(QOpenGLContext *context);
30 };
31
32 QT_END_NAMESPACE