summaryrefslogtreecommitdiffstats
path: root/src/core/ozone/gl_surface_wgl_qt.h
blob: 667a94f84e762d90108d459492448f95349e8a79 (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
32
33
34
35
36
37
// 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_WGL_QT_H
#define GL_SURFACE_WGL_QT_H

#include "gl_surface_qt.h"

#if defined(OS_WIN)

namespace gl {

class PbufferGLSurfaceWGL;

class GLSurfaceWGLQt: public GLSurfaceQt {
public:
    explicit GLSurfaceWGLQt(const gfx::Size& size);

    static bool InitializeOneOff();

    bool Initialize(GLSurfaceFormat format) override;
    void Destroy() override;
    void *GetHandle() override;
    void *GetDisplay() override;
    void *GetConfig() override;

protected:
    ~GLSurfaceWGLQt();

private:
    scoped_refptr<PbufferGLSurfaceWGL> m_surfaceBuffer;
};

}
#endif // defined(OS_WIN)
#endif // GL_SURFACE_WGL_QT_H