Revision control

+ // Copyright (C) 2026 The Qt Company Ltd.
+ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+ #ifndef QMULTIMEDIA_GL_SUPPORT_P_H
+ #define QMULTIMEDIA_GL_SUPPORT_P_H
+
+ //
+ // W A R N I N G
+ // -------------
+ //
+ // This file is not part of the Qt API. It exists purely as an
+ // implementation detail. This header file may change from version to
+ // version without notice, or even be removed.
+ //
+ // We mean it.
+ //
+
+ #include <QtMultimedia/private/qtmultimediaglobal_p.h>
+ #include <QtCore/qstring.h>
+
+ QT_BEGIN_NAMESPACE
+
+ class QDebug;
+
+ namespace QtMultimediaPrivate {
+
+ // Error codes returned by glGetError(), see
+ enum class GLError : unsigned int {
+ NoError = 0,
+ InvalidEnum = 0x0500,
+ InvalidValue = 0x0501,
+ InvalidOperation = 0x0502,
+ StackOverflow = 0x0503,
+ StackUnderflow = 0x0504,
+ OutOfMemory = 0x0505,
+ InvalidFramebufferOperation = 0x0506,
+ };
+
+ Q_MULTIMEDIA_EXPORT QDebug operator<<(QDebug debug, GLError error);
+
+ // Error codes returned by eglGetError(), see
+ enum class EGLError : int {
+ Success = 0x3000,
+ NotInitialized = 0x3001,
+ BadAccess = 0x3002,
+ BadAlloc = 0x3003,
+ BadAttribute = 0x3004,
+ BadConfig = 0x3005,
+ BadContext = 0x3006,
+ BadCurrentSurface = 0x3007,
+ BadDisplay = 0x3008,
+ BadMatch = 0x3009,
+ BadNativePixmap = 0x300A,
+ BadNativeWindow = 0x300B,
+ BadParameter = 0x300C,
+ BadSurface = 0x300D,
+ ContextLost = 0x300E,
+ };
+
+ Q_MULTIMEDIA_EXPORT QDebug operator<<(QDebug debug, EGLError error);
+
+ } // namespace QtMultimediaPrivate
+
+ QT_END_NAMESPACE
+
+ #endif