xref: /aosp_15_r20/external/angle/src/libGLESv2/egl_ext_stubs_autogen.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by generate_entry_points.py using data from egl.xml and egl_angle_ext.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_ext_stubs_autogen.h: Stubs for EXT extension entry points.
9 
10 #ifndef LIBGLESV2_EGL_EXT_STUBS_AUTOGEN_H_
11 #define LIBGLESV2_EGL_EXT_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 EGLint ClientWaitSyncKHR(Thread *thread,
37                          egl::Display *dpyPacked,
38                          egl::SyncID syncPacked,
39                          EGLint flags,
40                          EGLTimeKHR timeout);
41 EGLImageKHR CreateImageKHR(Thread *thread,
42                            egl::Display *dpyPacked,
43                            gl::ContextID ctxPacked,
44                            EGLenum target,
45                            EGLClientBuffer buffer,
46                            const AttributeMap &attrib_listPacked);
47 EGLClientBuffer CreateNativeClientBufferANDROID(Thread *thread,
48                                                 const AttributeMap &attrib_listPacked);
49 EGLSurface CreatePlatformPixmapSurfaceEXT(Thread *thread,
50                                           egl::Display *dpyPacked,
51                                           egl::Config *configPacked,
52                                           void *native_pixmap,
53                                           const AttributeMap &attrib_listPacked);
54 EGLSurface CreatePlatformWindowSurfaceEXT(Thread *thread,
55                                           egl::Display *dpyPacked,
56                                           egl::Config *configPacked,
57                                           void *native_window,
58                                           const AttributeMap &attrib_listPacked);
59 EGLStreamKHR CreateStreamKHR(Thread *thread,
60                              egl::Display *dpyPacked,
61                              const AttributeMap &attrib_listPacked);
62 EGLSyncKHR CreateSyncKHR(Thread *thread,
63                          egl::Display *dpyPacked,
64                          EGLenum type,
65                          const AttributeMap &attrib_listPacked);
66 EGLint DebugMessageControlKHR(Thread *thread,
67                               EGLDEBUGPROCKHR callback,
68                               const AttributeMap &attrib_listPacked);
69 EGLBoolean DestroyImageKHR(Thread *thread, egl::Display *dpyPacked, ImageID imagePacked);
70 EGLBoolean DestroyStreamKHR(Thread *thread, egl::Display *dpyPacked, egl::Stream *streamPacked);
71 EGLBoolean DestroySyncKHR(Thread *thread, egl::Display *dpyPacked, egl::SyncID syncPacked);
72 EGLint DupNativeFenceFDANDROID(Thread *thread, egl::Display *dpyPacked, egl::SyncID syncPacked);
73 EGLBoolean GetMscRateANGLE(Thread *thread,
74                            egl::Display *dpyPacked,
75                            SurfaceID surfacePacked,
76                            EGLint *numerator,
77                            EGLint *denominator);
78 EGLClientBuffer GetNativeClientBufferANDROID(Thread *thread, const struct AHardwareBuffer *buffer);
79 EGLDisplay GetPlatformDisplayEXT(Thread *thread,
80                                  EGLenum platform,
81                                  void *native_display,
82                                  const AttributeMap &attrib_listPacked);
83 EGLBoolean GetSyncAttribKHR(Thread *thread,
84                             egl::Display *dpyPacked,
85                             egl::SyncID syncPacked,
86                             EGLint attribute,
87                             EGLint *value);
88 EGLint LabelObjectKHR(Thread *thread,
89                       egl::Display *displayPacked,
90                       ObjectType objectTypePacked,
91                       EGLObjectKHR object,
92                       EGLLabelKHR label);
93 EGLBoolean LockSurfaceKHR(Thread *thread,
94                           egl::Display *dpyPacked,
95                           SurfaceID surfacePacked,
96                           const AttributeMap &attrib_listPacked);
97 EGLBoolean PostSubBufferNV(Thread *thread,
98                            egl::Display *dpyPacked,
99                            SurfaceID surfacePacked,
100                            EGLint x,
101                            EGLint y,
102                            EGLint width,
103                            EGLint height);
104 EGLBoolean PresentationTimeANDROID(Thread *thread,
105                                    egl::Display *dpyPacked,
106                                    SurfaceID surfacePacked,
107                                    EGLnsecsANDROID time);
108 EGLBoolean GetCompositorTimingSupportedANDROID(Thread *thread,
109                                                egl::Display *dpyPacked,
110                                                SurfaceID surfacePacked,
111                                                CompositorTiming namePacked);
112 EGLBoolean GetCompositorTimingANDROID(Thread *thread,
113                                       egl::Display *dpyPacked,
114                                       SurfaceID surfacePacked,
115                                       EGLint numTimestamps,
116                                       const EGLint *names,
117                                       EGLnsecsANDROID *values);
118 EGLBoolean GetNextFrameIdANDROID(Thread *thread,
119                                  egl::Display *dpyPacked,
120                                  SurfaceID surfacePacked,
121                                  EGLuint64KHR *frameId);
122 EGLBoolean GetFrameTimestampSupportedANDROID(Thread *thread,
123                                              egl::Display *dpyPacked,
124                                              SurfaceID surfacePacked,
125                                              Timestamp timestampPacked);
126 EGLBoolean GetFrameTimestampsANDROID(Thread *thread,
127                                      egl::Display *dpyPacked,
128                                      SurfaceID surfacePacked,
129                                      EGLuint64KHR frameId,
130                                      EGLint numTimestamps,
131                                      const EGLint *timestamps,
132                                      EGLnsecsANDROID *values);
133 EGLBoolean QueryDebugKHR(Thread *thread, EGLint attribute, EGLAttrib *value);
134 EGLBoolean QueryDeviceAttribEXT(Thread *thread,
135                                 egl::Device *devicePacked,
136                                 EGLint attribute,
137                                 EGLAttrib *value);
138 const char *QueryDeviceStringEXT(Thread *thread, egl::Device *devicePacked, EGLint name);
139 EGLBoolean QueryDisplayAttribEXT(Thread *thread,
140                                  egl::Display *dpyPacked,
141                                  EGLint attribute,
142                                  EGLAttrib *value);
143 EGLBoolean QueryDmaBufFormatsEXT(Thread *thread,
144                                  egl::Display *dpyPacked,
145                                  EGLint max_formats,
146                                  EGLint *formats,
147                                  EGLint *num_formats);
148 EGLBoolean QueryDmaBufModifiersEXT(Thread *thread,
149                                    egl::Display *dpyPacked,
150                                    EGLint format,
151                                    EGLint max_modifiers,
152                                    EGLuint64KHR *modifiers,
153                                    EGLBoolean *external_only,
154                                    EGLint *num_modifiers);
155 EGLBoolean QueryStreamKHR(Thread *thread,
156                           egl::Display *dpyPacked,
157                           egl::Stream *streamPacked,
158                           EGLenum attribute,
159                           EGLint *value);
160 EGLBoolean QueryStreamu64KHR(Thread *thread,
161                              egl::Display *dpyPacked,
162                              egl::Stream *streamPacked,
163                              EGLenum attribute,
164                              EGLuint64KHR *value);
165 EGLBoolean QuerySurface64KHR(Thread *thread,
166                              egl::Display *dpyPacked,
167                              SurfaceID surfacePacked,
168                              EGLint attribute,
169                              EGLAttribKHR *value);
170 EGLBoolean QuerySurfacePointerANGLE(Thread *thread,
171                                     egl::Display *dpyPacked,
172                                     SurfaceID surfacePacked,
173                                     EGLint attribute,
174                                     void **value);
175 void SetBlobCacheFuncsANDROID(Thread *thread,
176                               egl::Display *dpyPacked,
177                               EGLSetBlobFuncANDROID set,
178                               EGLGetBlobFuncANDROID get);
179 EGLBoolean SetDamageRegionKHR(Thread *thread,
180                               egl::Display *dpyPacked,
181                               SurfaceID surfacePacked,
182                               EGLint *rects,
183                               EGLint n_rects);
184 EGLBoolean SignalSyncKHR(Thread *thread,
185                          egl::Display *dpyPacked,
186                          egl::SyncID syncPacked,
187                          EGLenum mode);
188 EGLBoolean StreamAttribKHR(Thread *thread,
189                            egl::Display *dpyPacked,
190                            egl::Stream *streamPacked,
191                            EGLenum attribute,
192                            EGLint value);
193 EGLBoolean StreamConsumerAcquireKHR(Thread *thread,
194                                     egl::Display *dpyPacked,
195                                     egl::Stream *streamPacked);
196 EGLBoolean StreamConsumerGLTextureExternalKHR(Thread *thread,
197                                               egl::Display *dpyPacked,
198                                               egl::Stream *streamPacked);
199 EGLBoolean StreamConsumerGLTextureExternalAttribsNV(Thread *thread,
200                                                     egl::Display *dpyPacked,
201                                                     egl::Stream *streamPacked,
202                                                     const AttributeMap &attrib_listPacked);
203 EGLBoolean StreamConsumerReleaseKHR(Thread *thread,
204                                     egl::Display *dpyPacked,
205                                     egl::Stream *streamPacked);
206 EGLBoolean SwapBuffersWithDamageKHR(Thread *thread,
207                                     egl::Display *dpyPacked,
208                                     SurfaceID surfacePacked,
209                                     const EGLint *rects,
210                                     EGLint n_rects);
211 EGLBoolean UnlockSurfaceKHR(Thread *thread, egl::Display *dpyPacked, SurfaceID surfacePacked);
212 EGLint WaitSyncKHR(Thread *thread, egl::Display *dpyPacked, egl::SyncID syncPacked, EGLint flags);
213 EGLDeviceEXT CreateDeviceANGLE(Thread *thread,
214                                EGLint device_type,
215                                void *native_device,
216                                const EGLAttrib *attrib_list);
217 EGLBoolean ReleaseDeviceANGLE(Thread *thread, egl::Device *devicePacked);
218 EGLBoolean CreateStreamProducerD3DTextureANGLE(Thread *thread,
219                                                egl::Display *dpyPacked,
220                                                egl::Stream *streamPacked,
221                                                const AttributeMap &attrib_listPacked);
222 EGLBoolean StreamPostD3DTextureANGLE(Thread *thread,
223                                      egl::Display *dpyPacked,
224                                      egl::Stream *streamPacked,
225                                      void *texture,
226                                      const AttributeMap &attrib_listPacked);
227 EGLBoolean GetSyncValuesCHROMIUM(Thread *thread,
228                                  egl::Display *dpyPacked,
229                                  SurfaceID surfacePacked,
230                                  EGLuint64KHR *ust,
231                                  EGLuint64KHR *msc,
232                                  EGLuint64KHR *sbc);
233 EGLint ProgramCacheGetAttribANGLE(Thread *thread, egl::Display *dpyPacked, EGLenum attrib);
234 void ProgramCacheQueryANGLE(Thread *thread,
235                             egl::Display *dpyPacked,
236                             EGLint index,
237                             void *key,
238                             EGLint *keysize,
239                             void *binary,
240                             EGLint *binarysize);
241 void ProgramCachePopulateANGLE(Thread *thread,
242                                egl::Display *dpyPacked,
243                                const void *key,
244                                EGLint keysize,
245                                const void *binary,
246                                EGLint binarysize);
247 EGLint ProgramCacheResizeANGLE(Thread *thread, egl::Display *dpyPacked, EGLint limit, EGLint mode);
248 const char *QueryStringiANGLE(Thread *thread, egl::Display *dpyPacked, EGLint name, EGLint index);
249 void AcquireExternalContextANGLE(Thread *thread,
250                                  egl::Display *dpyPacked,
251                                  SurfaceID drawAndReadPacked);
252 void ReleaseExternalContextANGLE(Thread *thread, egl::Display *dpyPacked);
253 EGLBoolean SwapBuffersWithFrameTokenANGLE(Thread *thread,
254                                           egl::Display *dpyPacked,
255                                           SurfaceID surfacePacked,
256                                           EGLFrameTokenANGLE frametoken);
257 EGLBoolean PrepareSwapBuffersANGLE(Thread *thread,
258                                    egl::Display *dpyPacked,
259                                    SurfaceID surfacePacked);
260 void ReleaseHighPowerGPUANGLE(Thread *thread, egl::Display *dpyPacked, gl::ContextID ctxPacked);
261 void ReacquireHighPowerGPUANGLE(Thread *thread, egl::Display *dpyPacked, gl::ContextID ctxPacked);
262 void HandleGPUSwitchANGLE(Thread *thread, egl::Display *dpyPacked);
263 void ForceGPUSwitchANGLE(Thread *thread,
264                          egl::Display *dpyPacked,
265                          EGLint gpuIDHigh,
266                          EGLint gpuIDLow);
267 EGLBoolean QueryDisplayAttribANGLE(Thread *thread,
268                                    egl::Display *dpyPacked,
269                                    EGLint attribute,
270                                    EGLAttrib *value);
271 EGLBoolean ExportVkImageANGLE(Thread *thread,
272                               egl::Display *dpyPacked,
273                               ImageID imagePacked,
274                               void *vk_image,
275                               void *vk_image_create_info);
276 void *CopyMetalSharedEventANGLE(Thread *thread, egl::Display *dpyPacked, egl::SyncID syncPacked);
277 void WaitUntilWorkScheduledANGLE(Thread *thread, egl::Display *dpyPacked);
278 void SetValidationEnabledANGLE(Thread *thread, EGLBoolean validationState);
279 }  // namespace egl
280 #endif  // LIBGLESV2_EGL_EXT_STUBS_AUTOGEN_H_
281