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