xref: /aosp_15_r20/external/angle/src/libGLESv2/egl_stubs_autogen.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by generate_entry_points.py using data from egl.xml.
3 //
4 // Copyright 2020 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // egl_stubs_autogen.h: Stubs for EGL entry points.
9 
10 #ifndef LIBGLESV2_EGL_STUBS_AUTOGEN_H_
11 #define LIBGLESV2_EGL_STUBS_AUTOGEN_H_
12 
13 #include <EGL/egl.h>
14 #include <EGL/eglext.h>
15 
16 #include "common/PackedEGLEnums_autogen.h"
17 #include "common/PackedEnums.h"
18 
19 namespace gl
20 {
21 class Context;
22 }  // namespace gl
23 
24 namespace egl
25 {
26 class AttributeMap;
27 class Device;
28 class Display;
29 class Image;
30 class Stream;
31 class Surface;
32 class Sync;
33 class Thread;
34 struct Config;
35 
36 EGLBoolean BindAPI(Thread *thread, EGLenum api);
37 EGLBoolean BindTexImage(Thread *thread,
38                         egl::Display *dpyPacked,
39                         SurfaceID surfacePacked,
40                         EGLint buffer);
41 EGLBoolean ChooseConfig(Thread *thread,
42                         egl::Display *dpyPacked,
43                         const AttributeMap &attrib_listPacked,
44                         EGLConfig *configs,
45                         EGLint config_size,
46                         EGLint *num_config);
47 EGLint ClientWaitSync(Thread *thread,
48                       egl::Display *dpyPacked,
49                       egl::SyncID syncPacked,
50                       EGLint flags,
51                       EGLTime timeout);
52 EGLBoolean CopyBuffers(Thread *thread,
53                        egl::Display *dpyPacked,
54                        SurfaceID surfacePacked,
55                        EGLNativePixmapType target);
56 EGLContext CreateContext(Thread *thread,
57                          egl::Display *dpyPacked,
58                          egl::Config *configPacked,
59                          gl::ContextID share_contextPacked,
60                          const AttributeMap &attrib_listPacked);
61 EGLImage CreateImage(Thread *thread,
62                      egl::Display *dpyPacked,
63                      gl::ContextID ctxPacked,
64                      EGLenum target,
65                      EGLClientBuffer buffer,
66                      const AttributeMap &attrib_listPacked);
67 EGLSurface CreatePbufferFromClientBuffer(Thread *thread,
68                                          egl::Display *dpyPacked,
69                                          EGLenum buftype,
70                                          EGLClientBuffer buffer,
71                                          egl::Config *configPacked,
72                                          const AttributeMap &attrib_listPacked);
73 EGLSurface CreatePbufferSurface(Thread *thread,
74                                 egl::Display *dpyPacked,
75                                 egl::Config *configPacked,
76                                 const AttributeMap &attrib_listPacked);
77 EGLSurface CreatePixmapSurface(Thread *thread,
78                                egl::Display *dpyPacked,
79                                egl::Config *configPacked,
80                                EGLNativePixmapType pixmap,
81                                const AttributeMap &attrib_listPacked);
82 EGLSurface CreatePlatformPixmapSurface(Thread *thread,
83                                        egl::Display *dpyPacked,
84                                        egl::Config *configPacked,
85                                        void *native_pixmap,
86                                        const AttributeMap &attrib_listPacked);
87 EGLSurface CreatePlatformWindowSurface(Thread *thread,
88                                        egl::Display *dpyPacked,
89                                        egl::Config *configPacked,
90                                        void *native_window,
91                                        const AttributeMap &attrib_listPacked);
92 EGLSync CreateSync(Thread *thread,
93                    egl::Display *dpyPacked,
94                    EGLenum type,
95                    const AttributeMap &attrib_listPacked);
96 EGLSurface CreateWindowSurface(Thread *thread,
97                                egl::Display *dpyPacked,
98                                egl::Config *configPacked,
99                                EGLNativeWindowType win,
100                                const AttributeMap &attrib_listPacked);
101 EGLBoolean DestroyContext(Thread *thread, egl::Display *dpyPacked, gl::ContextID ctxPacked);
102 EGLBoolean DestroyImage(Thread *thread, egl::Display *dpyPacked, ImageID imagePacked);
103 EGLBoolean DestroySurface(Thread *thread, egl::Display *dpyPacked, SurfaceID surfacePacked);
104 EGLBoolean DestroySync(Thread *thread, egl::Display *dpyPacked, egl::SyncID syncPacked);
105 EGLBoolean GetConfigAttrib(Thread *thread,
106                            egl::Display *dpyPacked,
107                            egl::Config *configPacked,
108                            EGLint attribute,
109                            EGLint *value);
110 EGLBoolean GetConfigs(Thread *thread,
111                       egl::Display *dpyPacked,
112                       EGLConfig *configs,
113                       EGLint config_size,
114                       EGLint *num_config);
115 EGLContext GetCurrentContext(Thread *thread);
116 EGLDisplay GetCurrentDisplay(Thread *thread);
117 EGLSurface GetCurrentSurface(Thread *thread, EGLint readdraw);
118 EGLDisplay GetDisplay(Thread *thread, EGLNativeDisplayType display_id);
119 EGLint GetError(Thread *thread);
120 EGLDisplay GetPlatformDisplay(Thread *thread,
121                               EGLenum platform,
122                               void *native_display,
123                               const AttributeMap &attrib_listPacked);
124 __eglMustCastToProperFunctionPointerType GetProcAddress(Thread *thread, const char *procname);
125 EGLBoolean GetSyncAttrib(Thread *thread,
126                          egl::Display *dpyPacked,
127                          egl::SyncID syncPacked,
128                          EGLint attribute,
129                          EGLAttrib *value);
130 EGLBoolean Initialize(Thread *thread, egl::Display *dpyPacked, EGLint *major, EGLint *minor);
131 EGLBoolean MakeCurrent(Thread *thread,
132                        egl::Display *dpyPacked,
133                        SurfaceID drawPacked,
134                        SurfaceID readPacked,
135                        gl::ContextID ctxPacked);
136 EGLenum QueryAPI(Thread *thread);
137 EGLBoolean QueryContext(Thread *thread,
138                         egl::Display *dpyPacked,
139                         gl::ContextID ctxPacked,
140                         EGLint attribute,
141                         EGLint *value);
142 const char *QueryString(Thread *thread, egl::Display *dpyPacked, EGLint name);
143 EGLBoolean QuerySurface(Thread *thread,
144                         egl::Display *dpyPacked,
145                         SurfaceID surfacePacked,
146                         EGLint attribute,
147                         EGLint *value);
148 EGLBoolean ReleaseTexImage(Thread *thread,
149                            egl::Display *dpyPacked,
150                            SurfaceID surfacePacked,
151                            EGLint buffer);
152 EGLBoolean ReleaseThread(Thread *thread);
153 EGLBoolean SurfaceAttrib(Thread *thread,
154                          egl::Display *dpyPacked,
155                          SurfaceID surfacePacked,
156                          EGLint attribute,
157                          EGLint value);
158 EGLBoolean SwapBuffers(Thread *thread, egl::Display *dpyPacked, SurfaceID surfacePacked);
159 EGLBoolean SwapInterval(Thread *thread, egl::Display *dpyPacked, EGLint interval);
160 EGLBoolean Terminate(Thread *thread, egl::Display *dpyPacked);
161 EGLBoolean WaitClient(Thread *thread);
162 EGLBoolean WaitGL(Thread *thread);
163 EGLBoolean WaitNative(Thread *thread, EGLint engine);
164 EGLBoolean WaitSync(Thread *thread, egl::Display *dpyPacked, egl::SyncID syncPacked, EGLint flags);
165 }  // namespace egl
166 #endif  // LIBGLESV2_EGL_STUBS_AUTOGEN_H_
167