xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/gl/wgl/wgl_utils.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2015 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // wgl_utils.h: Utility routines specific to the WGL->EGL implementation.
8 
9 #ifndef LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_
10 #define LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_
11 
12 #include <vector>
13 
14 #include "common/platform.h"
15 
16 namespace rx
17 {
18 
19 class FunctionsWGL;
20 
21 namespace wgl
22 {
23 
24 PIXELFORMATDESCRIPTOR GetDefaultPixelFormatDescriptor();
25 std::vector<int> GetDefaultPixelFormatAttributes(bool preservedSwap);
26 
27 int QueryWGLFormatAttrib(HDC dc, int format, int attribName, const FunctionsWGL *functions);
28 }  // namespace wgl
29 
30 }  // namespace rx
31 
32 #endif  // LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_
33