Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: ui/gl/gl_bindings_autogen_wgl.h

Issue 2017623002: Create core profile contexts with WGL when --enable-unsafe-es3-apis is used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_bindings_api_autogen_wgl.h ('k') | ui/gl/gl_bindings_autogen_wgl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py 6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
11 #ifndef UI_GL_GL_BINDINGS_AUTOGEN_WGL_H_ 11 #ifndef UI_GL_GL_BINDINGS_AUTOGEN_WGL_H_
12 #define UI_GL_GL_BINDINGS_AUTOGEN_WGL_H_ 12 #define UI_GL_GL_BINDINGS_AUTOGEN_WGL_H_
13 13
14 namespace gl { 14 namespace gl {
15 15
16 class GLContext; 16 class GLContext;
17 17
18 typedef BOOL(GL_BINDING_CALL* wglChoosePixelFormatARBProc)( 18 typedef BOOL(GL_BINDING_CALL* wglChoosePixelFormatARBProc)(
19 HDC dc, 19 HDC dc,
20 const int* int_attrib_list, 20 const int* int_attrib_list,
21 const float* float_attrib_list, 21 const float* float_attrib_list,
22 UINT max_formats, 22 UINT max_formats,
23 int* formats, 23 int* formats,
24 UINT* num_formats); 24 UINT* num_formats);
25 typedef BOOL(GL_BINDING_CALL* wglCopyContextProc)(HGLRC hglrcSrc, 25 typedef BOOL(GL_BINDING_CALL* wglCopyContextProc)(HGLRC hglrcSrc,
26 HGLRC hglrcDst, 26 HGLRC hglrcDst,
27 UINT mask); 27 UINT mask);
28 typedef HGLRC(GL_BINDING_CALL* wglCreateContextProc)(HDC hdc); 28 typedef HGLRC(GL_BINDING_CALL* wglCreateContextProc)(HDC hdc);
29 typedef HGLRC(GL_BINDING_CALL* wglCreateContextAttribsARBProc)(
30 HDC hDC,
31 HGLRC hShareContext,
32 const int* attribList);
29 typedef HGLRC(GL_BINDING_CALL* wglCreateLayerContextProc)(HDC hdc, 33 typedef HGLRC(GL_BINDING_CALL* wglCreateLayerContextProc)(HDC hdc,
30 int iLayerPlane); 34 int iLayerPlane);
31 typedef HPBUFFERARB(GL_BINDING_CALL* wglCreatePbufferARBProc)( 35 typedef HPBUFFERARB(GL_BINDING_CALL* wglCreatePbufferARBProc)(
32 HDC hDC, 36 HDC hDC,
33 int iPixelFormat, 37 int iPixelFormat,
34 int iWidth, 38 int iWidth,
35 int iHeight, 39 int iHeight,
36 const int* piAttribList); 40 const int* piAttribList);
37 typedef BOOL(GL_BINDING_CALL* wglDeleteContextProc)(HGLRC hglrc); 41 typedef BOOL(GL_BINDING_CALL* wglDeleteContextProc)(HGLRC hglrc);
38 typedef BOOL(GL_BINDING_CALL* wglDestroyPbufferARBProc)(HPBUFFERARB hPbuffer); 42 typedef BOOL(GL_BINDING_CALL* wglDestroyPbufferARBProc)(HPBUFFERARB hPbuffer);
39 typedef HGLRC(GL_BINDING_CALL* wglGetCurrentContextProc)(); 43 typedef HGLRC(GL_BINDING_CALL* wglGetCurrentContextProc)();
40 typedef HDC(GL_BINDING_CALL* wglGetCurrentDCProc)(); 44 typedef HDC(GL_BINDING_CALL* wglGetCurrentDCProc)();
41 typedef const char*(GL_BINDING_CALL* wglGetExtensionsStringARBProc)(HDC hDC); 45 typedef const char*(GL_BINDING_CALL* wglGetExtensionsStringARBProc)(HDC hDC);
42 typedef const char*(GL_BINDING_CALL* wglGetExtensionsStringEXTProc)(); 46 typedef const char*(GL_BINDING_CALL* wglGetExtensionsStringEXTProc)();
43 typedef HDC(GL_BINDING_CALL* wglGetPbufferDCARBProc)(HPBUFFERARB hPbuffer); 47 typedef HDC(GL_BINDING_CALL* wglGetPbufferDCARBProc)(HPBUFFERARB hPbuffer);
44 typedef BOOL(GL_BINDING_CALL* wglMakeCurrentProc)(HDC hdc, HGLRC hglrc); 48 typedef BOOL(GL_BINDING_CALL* wglMakeCurrentProc)(HDC hdc, HGLRC hglrc);
45 typedef BOOL(GL_BINDING_CALL* wglQueryPbufferARBProc)(HPBUFFERARB hPbuffer, 49 typedef BOOL(GL_BINDING_CALL* wglQueryPbufferARBProc)(HPBUFFERARB hPbuffer,
46 int iAttribute, 50 int iAttribute,
47 int* piValue); 51 int* piValue);
48 typedef int(GL_BINDING_CALL* wglReleasePbufferDCARBProc)(HPBUFFERARB hPbuffer, 52 typedef int(GL_BINDING_CALL* wglReleasePbufferDCARBProc)(HPBUFFERARB hPbuffer,
49 HDC hDC); 53 HDC hDC);
50 typedef BOOL(GL_BINDING_CALL* wglShareListsProc)(HGLRC hglrc1, HGLRC hglrc2); 54 typedef BOOL(GL_BINDING_CALL* wglShareListsProc)(HGLRC hglrc1, HGLRC hglrc2);
51 typedef BOOL(GL_BINDING_CALL* wglSwapIntervalEXTProc)(int interval); 55 typedef BOOL(GL_BINDING_CALL* wglSwapIntervalEXTProc)(int interval);
52 typedef BOOL(GL_BINDING_CALL* wglSwapLayerBuffersProc)(HDC hdc, UINT fuPlanes); 56 typedef BOOL(GL_BINDING_CALL* wglSwapLayerBuffersProc)(HDC hdc, UINT fuPlanes);
53 57
54 struct ExtensionsWGL { 58 struct ExtensionsWGL {
59 bool b_WGL_ARB_create_context;
55 bool b_WGL_ARB_extensions_string; 60 bool b_WGL_ARB_extensions_string;
56 bool b_WGL_ARB_pbuffer; 61 bool b_WGL_ARB_pbuffer;
57 bool b_WGL_ARB_pixel_format; 62 bool b_WGL_ARB_pixel_format;
58 bool b_WGL_EXT_extensions_string; 63 bool b_WGL_EXT_extensions_string;
59 bool b_WGL_EXT_swap_control; 64 bool b_WGL_EXT_swap_control;
60 }; 65 };
61 66
62 struct ProcsWGL { 67 struct ProcsWGL {
63 wglChoosePixelFormatARBProc wglChoosePixelFormatARBFn; 68 wglChoosePixelFormatARBProc wglChoosePixelFormatARBFn;
64 wglCopyContextProc wglCopyContextFn; 69 wglCopyContextProc wglCopyContextFn;
65 wglCreateContextProc wglCreateContextFn; 70 wglCreateContextProc wglCreateContextFn;
71 wglCreateContextAttribsARBProc wglCreateContextAttribsARBFn;
66 wglCreateLayerContextProc wglCreateLayerContextFn; 72 wglCreateLayerContextProc wglCreateLayerContextFn;
67 wglCreatePbufferARBProc wglCreatePbufferARBFn; 73 wglCreatePbufferARBProc wglCreatePbufferARBFn;
68 wglDeleteContextProc wglDeleteContextFn; 74 wglDeleteContextProc wglDeleteContextFn;
69 wglDestroyPbufferARBProc wglDestroyPbufferARBFn; 75 wglDestroyPbufferARBProc wglDestroyPbufferARBFn;
70 wglGetCurrentContextProc wglGetCurrentContextFn; 76 wglGetCurrentContextProc wglGetCurrentContextFn;
71 wglGetCurrentDCProc wglGetCurrentDCFn; 77 wglGetCurrentDCProc wglGetCurrentDCFn;
72 wglGetExtensionsStringARBProc wglGetExtensionsStringARBFn; 78 wglGetExtensionsStringARBProc wglGetExtensionsStringARBFn;
73 wglGetExtensionsStringEXTProc wglGetExtensionsStringEXTFn; 79 wglGetExtensionsStringEXTProc wglGetExtensionsStringEXTFn;
74 wglGetPbufferDCARBProc wglGetPbufferDCARBFn; 80 wglGetPbufferDCARBProc wglGetPbufferDCARBFn;
75 wglMakeCurrentProc wglMakeCurrentFn; 81 wglMakeCurrentProc wglMakeCurrentFn;
(...skipping 10 matching lines...) Expand all
86 virtual ~WGLApi(); 92 virtual ~WGLApi();
87 93
88 virtual BOOL wglChoosePixelFormatARBFn(HDC dc, 94 virtual BOOL wglChoosePixelFormatARBFn(HDC dc,
89 const int* int_attrib_list, 95 const int* int_attrib_list,
90 const float* float_attrib_list, 96 const float* float_attrib_list,
91 UINT max_formats, 97 UINT max_formats,
92 int* formats, 98 int* formats,
93 UINT* num_formats) = 0; 99 UINT* num_formats) = 0;
94 virtual BOOL wglCopyContextFn(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) = 0; 100 virtual BOOL wglCopyContextFn(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) = 0;
95 virtual HGLRC wglCreateContextFn(HDC hdc) = 0; 101 virtual HGLRC wglCreateContextFn(HDC hdc) = 0;
102 virtual HGLRC wglCreateContextAttribsARBFn(HDC hDC,
103 HGLRC hShareContext,
104 const int* attribList) = 0;
96 virtual HGLRC wglCreateLayerContextFn(HDC hdc, int iLayerPlane) = 0; 105 virtual HGLRC wglCreateLayerContextFn(HDC hdc, int iLayerPlane) = 0;
97 virtual HPBUFFERARB wglCreatePbufferARBFn(HDC hDC, 106 virtual HPBUFFERARB wglCreatePbufferARBFn(HDC hDC,
98 int iPixelFormat, 107 int iPixelFormat,
99 int iWidth, 108 int iWidth,
100 int iHeight, 109 int iHeight,
101 const int* piAttribList) = 0; 110 const int* piAttribList) = 0;
102 virtual BOOL wglDeleteContextFn(HGLRC hglrc) = 0; 111 virtual BOOL wglDeleteContextFn(HGLRC hglrc) = 0;
103 virtual BOOL wglDestroyPbufferARBFn(HPBUFFERARB hPbuffer) = 0; 112 virtual BOOL wglDestroyPbufferARBFn(HPBUFFERARB hPbuffer) = 0;
104 virtual HGLRC wglGetCurrentContextFn() = 0; 113 virtual HGLRC wglGetCurrentContextFn() = 0;
105 virtual HDC wglGetCurrentDCFn() = 0; 114 virtual HDC wglGetCurrentDCFn() = 0;
106 virtual const char* wglGetExtensionsStringARBFn(HDC hDC) = 0; 115 virtual const char* wglGetExtensionsStringARBFn(HDC hDC) = 0;
107 virtual const char* wglGetExtensionsStringEXTFn() = 0; 116 virtual const char* wglGetExtensionsStringEXTFn() = 0;
108 virtual HDC wglGetPbufferDCARBFn(HPBUFFERARB hPbuffer) = 0; 117 virtual HDC wglGetPbufferDCARBFn(HPBUFFERARB hPbuffer) = 0;
109 virtual BOOL wglMakeCurrentFn(HDC hdc, HGLRC hglrc) = 0; 118 virtual BOOL wglMakeCurrentFn(HDC hdc, HGLRC hglrc) = 0;
110 virtual BOOL wglQueryPbufferARBFn(HPBUFFERARB hPbuffer, 119 virtual BOOL wglQueryPbufferARBFn(HPBUFFERARB hPbuffer,
111 int iAttribute, 120 int iAttribute,
112 int* piValue) = 0; 121 int* piValue) = 0;
113 virtual int wglReleasePbufferDCARBFn(HPBUFFERARB hPbuffer, HDC hDC) = 0; 122 virtual int wglReleasePbufferDCARBFn(HPBUFFERARB hPbuffer, HDC hDC) = 0;
114 virtual BOOL wglShareListsFn(HGLRC hglrc1, HGLRC hglrc2) = 0; 123 virtual BOOL wglShareListsFn(HGLRC hglrc1, HGLRC hglrc2) = 0;
115 virtual BOOL wglSwapIntervalEXTFn(int interval) = 0; 124 virtual BOOL wglSwapIntervalEXTFn(int interval) = 0;
116 virtual BOOL wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) = 0; 125 virtual BOOL wglSwapLayerBuffersFn(HDC hdc, UINT fuPlanes) = 0;
117 }; 126 };
118 127
119 } // namespace gl 128 } // namespace gl
120 129
121 #define wglChoosePixelFormatARB \ 130 #define wglChoosePixelFormatARB \
122 ::gl::g_current_wgl_context->wglChoosePixelFormatARBFn 131 ::gl::g_current_wgl_context->wglChoosePixelFormatARBFn
123 #define wglCopyContext ::gl::g_current_wgl_context->wglCopyContextFn 132 #define wglCopyContext ::gl::g_current_wgl_context->wglCopyContextFn
124 #define wglCreateContext ::gl::g_current_wgl_context->wglCreateContextFn 133 #define wglCreateContext ::gl::g_current_wgl_context->wglCreateContextFn
134 #define wglCreateContextAttribsARB \
135 ::gl::g_current_wgl_context->wglCreateContextAttribsARBFn
125 #define wglCreateLayerContext \ 136 #define wglCreateLayerContext \
126 ::gl::g_current_wgl_context->wglCreateLayerContextFn 137 ::gl::g_current_wgl_context->wglCreateLayerContextFn
127 #define wglCreatePbufferARB ::gl::g_current_wgl_context->wglCreatePbufferARBFn 138 #define wglCreatePbufferARB ::gl::g_current_wgl_context->wglCreatePbufferARBFn
128 #define wglDeleteContext ::gl::g_current_wgl_context->wglDeleteContextFn 139 #define wglDeleteContext ::gl::g_current_wgl_context->wglDeleteContextFn
129 #define wglDestroyPbufferARB ::gl::g_current_wgl_context->wglDestroyPbufferARBFn 140 #define wglDestroyPbufferARB ::gl::g_current_wgl_context->wglDestroyPbufferARBFn
130 #define wglGetCurrentContext ::gl::g_current_wgl_context->wglGetCurrentContextFn 141 #define wglGetCurrentContext ::gl::g_current_wgl_context->wglGetCurrentContextFn
131 #define wglGetCurrentDC ::gl::g_current_wgl_context->wglGetCurrentDCFn 142 #define wglGetCurrentDC ::gl::g_current_wgl_context->wglGetCurrentDCFn
132 #define wglGetExtensionsStringARB \ 143 #define wglGetExtensionsStringARB \
133 ::gl::g_current_wgl_context->wglGetExtensionsStringARBFn 144 ::gl::g_current_wgl_context->wglGetExtensionsStringARBFn
134 #define wglGetExtensionsStringEXT \ 145 #define wglGetExtensionsStringEXT \
135 ::gl::g_current_wgl_context->wglGetExtensionsStringEXTFn 146 ::gl::g_current_wgl_context->wglGetExtensionsStringEXTFn
136 #define wglGetPbufferDCARB ::gl::g_current_wgl_context->wglGetPbufferDCARBFn 147 #define wglGetPbufferDCARB ::gl::g_current_wgl_context->wglGetPbufferDCARBFn
137 #define wglMakeCurrent ::gl::g_current_wgl_context->wglMakeCurrentFn 148 #define wglMakeCurrent ::gl::g_current_wgl_context->wglMakeCurrentFn
138 #define wglQueryPbufferARB ::gl::g_current_wgl_context->wglQueryPbufferARBFn 149 #define wglQueryPbufferARB ::gl::g_current_wgl_context->wglQueryPbufferARBFn
139 #define wglReleasePbufferDCARB \ 150 #define wglReleasePbufferDCARB \
140 ::gl::g_current_wgl_context->wglReleasePbufferDCARBFn 151 ::gl::g_current_wgl_context->wglReleasePbufferDCARBFn
141 #define wglShareLists ::gl::g_current_wgl_context->wglShareListsFn 152 #define wglShareLists ::gl::g_current_wgl_context->wglShareListsFn
142 #define wglSwapIntervalEXT ::gl::g_current_wgl_context->wglSwapIntervalEXTFn 153 #define wglSwapIntervalEXT ::gl::g_current_wgl_context->wglSwapIntervalEXTFn
143 #define wglSwapLayerBuffers ::gl::g_current_wgl_context->wglSwapLayerBuffersFn 154 #define wglSwapLayerBuffers ::gl::g_current_wgl_context->wglSwapLayerBuffersFn
144 155
145 #endif // UI_GL_GL_BINDINGS_AUTOGEN_WGL_H_ 156 #endif // UI_GL_GL_BINDINGS_AUTOGEN_WGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_api_autogen_wgl.h ('k') | ui/gl/gl_bindings_autogen_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698