blob: 6312f6b74d156f8715f53e8e99973cdd5417447b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (C) 2018 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 GL_SURFACE_GLX_QT_H_
#define GL_SURFACE_GLX_QT_H_
#include "gl_surface_qt.h"
namespace gl {
class GLSurfaceGLXQt: public GLSurfaceQt {
public:
explicit GLSurfaceGLXQt(const gfx::Size& size);
static bool InitializeOneOff();
static bool InitializeExtensionSettingsOneOff();
bool Initialize(GLSurfaceFormat format) override;
void Destroy() override;
void* GetHandle() override;
protected:
~GLSurfaceGLXQt();
private:
static bool s_initialized;
int m_surfaceBuffer;
};
}
#endif
|