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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
10
11 #ifndef UI_GFX_GL_GL_BINDINGS_AUTOGEN_EGL_H_
12 #define UI_GFX_GL_GL_BINDINGS_AUTOGEN_EGL_H_
13
14 namespace gfx {
15
16 class GLContext;
17
18 typedef EGLBoolean(GL_BINDING_CALL* eglBindAPIProc)(EGLenum api);
19 typedef EGLBoolean(GL_BINDING_CALL* eglBindTexImageProc)(EGLDisplay dpy,
20 EGLSurface surface,
21 EGLint buffer);
22 typedef EGLBoolean(GL_BINDING_CALL* eglChooseConfigProc)(
23 EGLDisplay dpy,
24 const EGLint* attrib_list,
25 EGLConfig* configs,
26 EGLint config_size,
27 EGLint* num_config);
28 typedef EGLint(GL_BINDING_CALL* eglClientWaitSyncKHRProc)(EGLDisplay dpy,
29 EGLSyncKHR sync,
30 EGLint flags,
31 EGLTimeKHR timeout);
32 typedef EGLBoolean(GL_BINDING_CALL* eglCopyBuffersProc)(
33 EGLDisplay dpy,
34 EGLSurface surface,
35 EGLNativePixmapType target);
36 typedef EGLContext(GL_BINDING_CALL* eglCreateContextProc)(
37 EGLDisplay dpy,
38 EGLConfig config,
39 EGLContext share_context,
40 const EGLint* attrib_list);
41 typedef EGLImageKHR(GL_BINDING_CALL* eglCreateImageKHRProc)(
42 EGLDisplay dpy,
43 EGLContext ctx,
44 EGLenum target,
45 EGLClientBuffer buffer,
46 const EGLint* attrib_list);
47 typedef EGLSurface(GL_BINDING_CALL* eglCreatePbufferFromClientBufferProc)(
48 EGLDisplay dpy,
49 EGLenum buftype,
50 void* buffer,
51 EGLConfig config,
52 const EGLint* attrib_list);
53 typedef EGLSurface(GL_BINDING_CALL* eglCreatePbufferSurfaceProc)(
54 EGLDisplay dpy,
55 EGLConfig config,
56 const EGLint* attrib_list);
57 typedef EGLSurface(GL_BINDING_CALL* eglCreatePixmapSurfaceProc)(
58 EGLDisplay dpy,
59 EGLConfig config,
60 EGLNativePixmapType pixmap,
61 const EGLint* attrib_list);
62 typedef EGLSyncKHR(GL_BINDING_CALL* eglCreateSyncKHRProc)(
63 EGLDisplay dpy,
64 EGLenum type,
65 const EGLint* attrib_list);
66 typedef EGLSurface(GL_BINDING_CALL* eglCreateWindowSurfaceProc)(
67 EGLDisplay dpy,
68 EGLConfig config,
69 EGLNativeWindowType win,
70 const EGLint* attrib_list);
71 typedef EGLBoolean(GL_BINDING_CALL* eglDestroyContextProc)(EGLDisplay dpy,
72 EGLContext ctx);
73 typedef EGLBoolean(GL_BINDING_CALL* eglDestroyImageKHRProc)(EGLDisplay dpy,
74 EGLImageKHR image);
75 typedef EGLBoolean(GL_BINDING_CALL* eglDestroySurfaceProc)(EGLDisplay dpy,
76 EGLSurface surface);
77 typedef EGLBoolean(GL_BINDING_CALL* eglDestroySyncKHRProc)(EGLDisplay dpy,
78 EGLSyncKHR sync);
79 typedef EGLBoolean(GL_BINDING_CALL* eglGetConfigAttribProc)(EGLDisplay dpy,
80 EGLConfig config,
81 EGLint attribute,
82 EGLint* value);
83 typedef EGLBoolean(GL_BINDING_CALL* eglGetConfigsProc)(EGLDisplay dpy,
84 EGLConfig* configs,
85 EGLint config_size,
86 EGLint* num_config);
87 typedef EGLContext(GL_BINDING_CALL* eglGetCurrentContextProc)(void);
88 typedef EGLDisplay(GL_BINDING_CALL* eglGetCurrentDisplayProc)(void);
89 typedef EGLSurface(GL_BINDING_CALL* eglGetCurrentSurfaceProc)(EGLint readdraw);
90 typedef EGLDisplay(GL_BINDING_CALL* eglGetDisplayProc)(
91 EGLNativeDisplayType display_id);
92 typedef EGLint(GL_BINDING_CALL* eglGetErrorProc)(void);
93 typedef EGLDisplay(GL_BINDING_CALL* eglGetPlatformDisplayEXTProc)(
94 EGLenum platform,
95 void* native_display,
96 const EGLint* attrib_list);
97 typedef __eglMustCastToProperFunctionPointerType(
98 GL_BINDING_CALL* eglGetProcAddressProc)(const char* procname);
99 typedef EGLBoolean(GL_BINDING_CALL* eglGetSyncAttribKHRProc)(EGLDisplay dpy,
100 EGLSyncKHR sync,
101 EGLint attribute,
102 EGLint* value);
103 typedef EGLBoolean(GL_BINDING_CALL* eglGetSyncValuesCHROMIUMProc)(
104 EGLDisplay dpy,
105 EGLSurface surface,
106 EGLuint64CHROMIUM* ust,
107 EGLuint64CHROMIUM* msc,
108 EGLuint64CHROMIUM* sbc);
109 typedef EGLBoolean(GL_BINDING_CALL* eglInitializeProc)(EGLDisplay dpy,
110 EGLint* major,
111 EGLint* minor);
112 typedef EGLBoolean(GL_BINDING_CALL* eglMakeCurrentProc)(EGLDisplay dpy,
113 EGLSurface draw,
114 EGLSurface read,
115 EGLContext ctx);
116 typedef EGLBoolean(GL_BINDING_CALL* eglPostSubBufferNVProc)(EGLDisplay dpy,
117 EGLSurface surface,
118 EGLint x,
119 EGLint y,
120 EGLint width,
121 EGLint height);
122 typedef EGLenum(GL_BINDING_CALL* eglQueryAPIProc)(void);
123 typedef EGLBoolean(GL_BINDING_CALL* eglQueryContextProc)(EGLDisplay dpy,
124 EGLContext ctx,
125 EGLint attribute,
126 EGLint* value);
127 typedef const char*(GL_BINDING_CALL* eglQueryStringProc)(EGLDisplay dpy,
128 EGLint name);
129 typedef EGLBoolean(GL_BINDING_CALL* eglQuerySurfaceProc)(EGLDisplay dpy,
130 EGLSurface surface,
131 EGLint attribute,
132 EGLint* value);
133 typedef EGLBoolean(GL_BINDING_CALL* eglQuerySurfacePointerANGLEProc)(
134 EGLDisplay dpy,
135 EGLSurface surface,
136 EGLint attribute,
137 void** value);
138 typedef EGLBoolean(GL_BINDING_CALL* eglReleaseTexImageProc)(EGLDisplay dpy,
139 EGLSurface surface,
140 EGLint buffer);
141 typedef EGLBoolean(GL_BINDING_CALL* eglReleaseThreadProc)(void);
142 typedef EGLBoolean(GL_BINDING_CALL* eglSurfaceAttribProc)(EGLDisplay dpy,
143 EGLSurface surface,
144 EGLint attribute,
145 EGLint value);
146 typedef EGLBoolean(GL_BINDING_CALL* eglSwapBuffersProc)(EGLDisplay dpy,
147 EGLSurface surface);
148 typedef EGLBoolean(GL_BINDING_CALL* eglSwapIntervalProc)(EGLDisplay dpy,
149 EGLint interval);
150 typedef EGLBoolean(GL_BINDING_CALL* eglTerminateProc)(EGLDisplay dpy);
151 typedef EGLBoolean(GL_BINDING_CALL* eglWaitClientProc)(void);
152 typedef EGLBoolean(GL_BINDING_CALL* eglWaitGLProc)(void);
153 typedef EGLBoolean(GL_BINDING_CALL* eglWaitNativeProc)(EGLint engine);
154 typedef EGLint(GL_BINDING_CALL* eglWaitSyncKHRProc)(EGLDisplay dpy,
155 EGLSyncKHR sync,
156 EGLint flags);
157
158 struct ExtensionsEGL {
159 bool b_EGL_ANGLE_d3d_share_handle_client_buffer;
160 bool b_EGL_ANGLE_platform_angle;
161 bool b_EGL_ANGLE_query_surface_pointer;
162 bool b_EGL_ANGLE_surface_d3d_texture_2d_share_handle;
163 bool b_EGL_CHROMIUM_sync_control;
164 bool b_EGL_KHR_fence_sync;
165 bool b_EGL_KHR_gl_texture_2D_image;
166 bool b_EGL_KHR_image_base;
167 bool b_EGL_KHR_wait_sync;
168 bool b_EGL_NV_post_sub_buffer;
169 };
170
171 struct ProcsEGL {
172 eglBindAPIProc eglBindAPIFn;
173 eglBindTexImageProc eglBindTexImageFn;
174 eglChooseConfigProc eglChooseConfigFn;
175 eglClientWaitSyncKHRProc eglClientWaitSyncKHRFn;
176 eglCopyBuffersProc eglCopyBuffersFn;
177 eglCreateContextProc eglCreateContextFn;
178 eglCreateImageKHRProc eglCreateImageKHRFn;
179 eglCreatePbufferFromClientBufferProc eglCreatePbufferFromClientBufferFn;
180 eglCreatePbufferSurfaceProc eglCreatePbufferSurfaceFn;
181 eglCreatePixmapSurfaceProc eglCreatePixmapSurfaceFn;
182 eglCreateSyncKHRProc eglCreateSyncKHRFn;
183 eglCreateWindowSurfaceProc eglCreateWindowSurfaceFn;
184 eglDestroyContextProc eglDestroyContextFn;
185 eglDestroyImageKHRProc eglDestroyImageKHRFn;
186 eglDestroySurfaceProc eglDestroySurfaceFn;
187 eglDestroySyncKHRProc eglDestroySyncKHRFn;
188 eglGetConfigAttribProc eglGetConfigAttribFn;
189 eglGetConfigsProc eglGetConfigsFn;
190 eglGetCurrentContextProc eglGetCurrentContextFn;
191 eglGetCurrentDisplayProc eglGetCurrentDisplayFn;
192 eglGetCurrentSurfaceProc eglGetCurrentSurfaceFn;
193 eglGetDisplayProc eglGetDisplayFn;
194 eglGetErrorProc eglGetErrorFn;
195 eglGetPlatformDisplayEXTProc eglGetPlatformDisplayEXTFn;
196 eglGetProcAddressProc eglGetProcAddressFn;
197 eglGetSyncAttribKHRProc eglGetSyncAttribKHRFn;
198 eglGetSyncValuesCHROMIUMProc eglGetSyncValuesCHROMIUMFn;
199 eglInitializeProc eglInitializeFn;
200 eglMakeCurrentProc eglMakeCurrentFn;
201 eglPostSubBufferNVProc eglPostSubBufferNVFn;
202 eglQueryAPIProc eglQueryAPIFn;
203 eglQueryContextProc eglQueryContextFn;
204 eglQueryStringProc eglQueryStringFn;
205 eglQuerySurfaceProc eglQuerySurfaceFn;
206 eglQuerySurfacePointerANGLEProc eglQuerySurfacePointerANGLEFn;
207 eglReleaseTexImageProc eglReleaseTexImageFn;
208 eglReleaseThreadProc eglReleaseThreadFn;
209 eglSurfaceAttribProc eglSurfaceAttribFn;
210 eglSwapBuffersProc eglSwapBuffersFn;
211 eglSwapIntervalProc eglSwapIntervalFn;
212 eglTerminateProc eglTerminateFn;
213 eglWaitClientProc eglWaitClientFn;
214 eglWaitGLProc eglWaitGLFn;
215 eglWaitNativeProc eglWaitNativeFn;
216 eglWaitSyncKHRProc eglWaitSyncKHRFn;
217 };
218
219 class GL_EXPORT EGLApi {
220 public:
221 EGLApi();
222 virtual ~EGLApi();
223
224 virtual EGLBoolean eglBindAPIFn(EGLenum api) = 0;
225 virtual EGLBoolean eglBindTexImageFn(EGLDisplay dpy,
226 EGLSurface surface,
227 EGLint buffer) = 0;
228 virtual EGLBoolean eglChooseConfigFn(EGLDisplay dpy,
229 const EGLint* attrib_list,
230 EGLConfig* configs,
231 EGLint config_size,
232 EGLint* num_config) = 0;
233 virtual EGLint eglClientWaitSyncKHRFn(EGLDisplay dpy,
234 EGLSyncKHR sync,
235 EGLint flags,
236 EGLTimeKHR timeout) = 0;
237 virtual EGLBoolean eglCopyBuffersFn(EGLDisplay dpy,
238 EGLSurface surface,
239 EGLNativePixmapType target) = 0;
240 virtual EGLContext eglCreateContextFn(EGLDisplay dpy,
241 EGLConfig config,
242 EGLContext share_context,
243 const EGLint* attrib_list) = 0;
244 virtual EGLImageKHR eglCreateImageKHRFn(EGLDisplay dpy,
245 EGLContext ctx,
246 EGLenum target,
247 EGLClientBuffer buffer,
248 const EGLint* attrib_list) = 0;
249 virtual EGLSurface eglCreatePbufferFromClientBufferFn(
250 EGLDisplay dpy,
251 EGLenum buftype,
252 void* buffer,
253 EGLConfig config,
254 const EGLint* attrib_list) = 0;
255 virtual EGLSurface eglCreatePbufferSurfaceFn(EGLDisplay dpy,
256 EGLConfig config,
257 const EGLint* attrib_list) = 0;
258 virtual EGLSurface eglCreatePixmapSurfaceFn(EGLDisplay dpy,
259 EGLConfig config,
260 EGLNativePixmapType pixmap,
261 const EGLint* attrib_list) = 0;
262 virtual EGLSyncKHR eglCreateSyncKHRFn(EGLDisplay dpy,
263 EGLenum type,
264 const EGLint* attrib_list) = 0;
265 virtual EGLSurface eglCreateWindowSurfaceFn(EGLDisplay dpy,
266 EGLConfig config,
267 EGLNativeWindowType win,
268 const EGLint* attrib_list) = 0;
269 virtual EGLBoolean eglDestroyContextFn(EGLDisplay dpy, EGLContext ctx) = 0;
270 virtual EGLBoolean eglDestroyImageKHRFn(EGLDisplay dpy,
271 EGLImageKHR image) = 0;
272 virtual EGLBoolean eglDestroySurfaceFn(EGLDisplay dpy,
273 EGLSurface surface) = 0;
274 virtual EGLBoolean eglDestroySyncKHRFn(EGLDisplay dpy, EGLSyncKHR sync) = 0;
275 virtual EGLBoolean eglGetConfigAttribFn(EGLDisplay dpy,
276 EGLConfig config,
277 EGLint attribute,
278 EGLint* value) = 0;
279 virtual EGLBoolean eglGetConfigsFn(EGLDisplay dpy,
280 EGLConfig* configs,
281 EGLint config_size,
282 EGLint* num_config) = 0;
283 virtual EGLContext eglGetCurrentContextFn(void) = 0;
284 virtual EGLDisplay eglGetCurrentDisplayFn(void) = 0;
285 virtual EGLSurface eglGetCurrentSurfaceFn(EGLint readdraw) = 0;
286 virtual EGLDisplay eglGetDisplayFn(EGLNativeDisplayType display_id) = 0;
287 virtual EGLint eglGetErrorFn(void) = 0;
288 virtual EGLDisplay eglGetPlatformDisplayEXTFn(EGLenum platform,
289 void* native_display,
290 const EGLint* attrib_list) = 0;
291 virtual __eglMustCastToProperFunctionPointerType eglGetProcAddressFn(
292 const char* procname) = 0;
293 virtual EGLBoolean eglGetSyncAttribKHRFn(EGLDisplay dpy,
294 EGLSyncKHR sync,
295 EGLint attribute,
296 EGLint* value) = 0;
297 virtual EGLBoolean eglGetSyncValuesCHROMIUMFn(EGLDisplay dpy,
298 EGLSurface surface,
299 EGLuint64CHROMIUM* ust,
300 EGLuint64CHROMIUM* msc,
301 EGLuint64CHROMIUM* sbc) = 0;
302 virtual EGLBoolean eglInitializeFn(EGLDisplay dpy,
303 EGLint* major,
304 EGLint* minor) = 0;
305 virtual EGLBoolean eglMakeCurrentFn(EGLDisplay dpy,
306 EGLSurface draw,
307 EGLSurface read,
308 EGLContext ctx) = 0;
309 virtual EGLBoolean eglPostSubBufferNVFn(EGLDisplay dpy,
310 EGLSurface surface,
311 EGLint x,
312 EGLint y,
313 EGLint width,
314 EGLint height) = 0;
315 virtual EGLenum eglQueryAPIFn(void) = 0;
316 virtual EGLBoolean eglQueryContextFn(EGLDisplay dpy,
317 EGLContext ctx,
318 EGLint attribute,
319 EGLint* value) = 0;
320 virtual const char* eglQueryStringFn(EGLDisplay dpy, EGLint name) = 0;
321 virtual EGLBoolean eglQuerySurfaceFn(EGLDisplay dpy,
322 EGLSurface surface,
323 EGLint attribute,
324 EGLint* value) = 0;
325 virtual EGLBoolean eglQuerySurfacePointerANGLEFn(EGLDisplay dpy,
326 EGLSurface surface,
327 EGLint attribute,
328 void** value) = 0;
329 virtual EGLBoolean eglReleaseTexImageFn(EGLDisplay dpy,
330 EGLSurface surface,
331 EGLint buffer) = 0;
332 virtual EGLBoolean eglReleaseThreadFn(void) = 0;
333 virtual EGLBoolean eglSurfaceAttribFn(EGLDisplay dpy,
334 EGLSurface surface,
335 EGLint attribute,
336 EGLint value) = 0;
337 virtual EGLBoolean eglSwapBuffersFn(EGLDisplay dpy, EGLSurface surface) = 0;
338 virtual EGLBoolean eglSwapIntervalFn(EGLDisplay dpy, EGLint interval) = 0;
339 virtual EGLBoolean eglTerminateFn(EGLDisplay dpy) = 0;
340 virtual EGLBoolean eglWaitClientFn(void) = 0;
341 virtual EGLBoolean eglWaitGLFn(void) = 0;
342 virtual EGLBoolean eglWaitNativeFn(EGLint engine) = 0;
343 virtual EGLint eglWaitSyncKHRFn(EGLDisplay dpy,
344 EGLSyncKHR sync,
345 EGLint flags) = 0;
346 };
347
348 } // namespace gfx
349
350 #define eglBindAPI ::gfx::g_current_egl_context->eglBindAPIFn
351 #define eglBindTexImage ::gfx::g_current_egl_context->eglBindTexImageFn
352 #define eglChooseConfig ::gfx::g_current_egl_context->eglChooseConfigFn
353 #define eglClientWaitSyncKHR \
354 ::gfx::g_current_egl_context->eglClientWaitSyncKHRFn
355 #define eglCopyBuffers ::gfx::g_current_egl_context->eglCopyBuffersFn
356 #define eglCreateContext ::gfx::g_current_egl_context->eglCreateContextFn
357 #define eglCreateImageKHR ::gfx::g_current_egl_context->eglCreateImageKHRFn
358 #define eglCreatePbufferFromClientBuffer \
359 ::gfx::g_current_egl_context->eglCreatePbufferFromClientBufferFn
360 #define eglCreatePbufferSurface \
361 ::gfx::g_current_egl_context->eglCreatePbufferSurfaceFn
362 #define eglCreatePixmapSurface \
363 ::gfx::g_current_egl_context->eglCreatePixmapSurfaceFn
364 #define eglCreateSyncKHR ::gfx::g_current_egl_context->eglCreateSyncKHRFn
365 #define eglCreateWindowSurface \
366 ::gfx::g_current_egl_context->eglCreateWindowSurfaceFn
367 #define eglDestroyContext ::gfx::g_current_egl_context->eglDestroyContextFn
368 #define eglDestroyImageKHR ::gfx::g_current_egl_context->eglDestroyImageKHRFn
369 #define eglDestroySurface ::gfx::g_current_egl_context->eglDestroySurfaceFn
370 #define eglDestroySyncKHR ::gfx::g_current_egl_context->eglDestroySyncKHRFn
371 #define eglGetConfigAttrib ::gfx::g_current_egl_context->eglGetConfigAttribFn
372 #define eglGetConfigs ::gfx::g_current_egl_context->eglGetConfigsFn
373 #define eglGetCurrentContext \
374 ::gfx::g_current_egl_context->eglGetCurrentContextFn
375 #define eglGetCurrentDisplay \
376 ::gfx::g_current_egl_context->eglGetCurrentDisplayFn
377 #define eglGetCurrentSurface \
378 ::gfx::g_current_egl_context->eglGetCurrentSurfaceFn
379 #define eglGetDisplay ::gfx::g_current_egl_context->eglGetDisplayFn
380 #define eglGetError ::gfx::g_current_egl_context->eglGetErrorFn
381 #define eglGetPlatformDisplayEXT \
382 ::gfx::g_current_egl_context->eglGetPlatformDisplayEXTFn
383 #define eglGetProcAddress ::gfx::g_current_egl_context->eglGetProcAddressFn
384 #define eglGetSyncAttribKHR ::gfx::g_current_egl_context->eglGetSyncAttribKHRFn
385 #define eglGetSyncValuesCHROMIUM \
386 ::gfx::g_current_egl_context->eglGetSyncValuesCHROMIUMFn
387 #define eglInitialize ::gfx::g_current_egl_context->eglInitializeFn
388 #define eglMakeCurrent ::gfx::g_current_egl_context->eglMakeCurrentFn
389 #define eglPostSubBufferNV ::gfx::g_current_egl_context->eglPostSubBufferNVFn
390 #define eglQueryAPI ::gfx::g_current_egl_context->eglQueryAPIFn
391 #define eglQueryContext ::gfx::g_current_egl_context->eglQueryContextFn
392 #define eglQueryString ::gfx::g_current_egl_context->eglQueryStringFn
393 #define eglQuerySurface ::gfx::g_current_egl_context->eglQuerySurfaceFn
394 #define eglQuerySurfacePointerANGLE \
395 ::gfx::g_current_egl_context->eglQuerySurfacePointerANGLEFn
396 #define eglReleaseTexImage ::gfx::g_current_egl_context->eglReleaseTexImageFn
397 #define eglReleaseThread ::gfx::g_current_egl_context->eglReleaseThreadFn
398 #define eglSurfaceAttrib ::gfx::g_current_egl_context->eglSurfaceAttribFn
399 #define eglSwapBuffers ::gfx::g_current_egl_context->eglSwapBuffersFn
400 #define eglSwapInterval ::gfx::g_current_egl_context->eglSwapIntervalFn
401 #define eglTerminate ::gfx::g_current_egl_context->eglTerminateFn
402 #define eglWaitClient ::gfx::g_current_egl_context->eglWaitClientFn
403 #define eglWaitGL ::gfx::g_current_egl_context->eglWaitGLFn
404 #define eglWaitNative ::gfx::g_current_egl_context->eglWaitNativeFn
405 #define eglWaitSyncKHR ::gfx::g_current_egl_context->eglWaitSyncKHRFn
406
407 #endif // UI_GFX_GL_GL_BINDINGS_AUTOGEN_EGL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698