// 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 m_surfaceBuffer; }; } #endif // defined(OS_WIN) #endif // GL_SURFACE_WGL_QT_H