1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by generate_loader.py using data from egl.xml and egl_angle_ext.xml.
3 //
4 // Copyright 2018 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_loader_autogen.cpp:
9 //   Simple EGL function loader.
10 
11 #include "egl_loader_autogen.h"
12 
13 PFNEGLCHOOSECONFIGPROC l_EGL_ChooseConfig;
14 PFNEGLCOPYBUFFERSPROC l_EGL_CopyBuffers;
15 PFNEGLCREATECONTEXTPROC l_EGL_CreateContext;
16 PFNEGLCREATEPBUFFERSURFACEPROC l_EGL_CreatePbufferSurface;
17 PFNEGLCREATEPIXMAPSURFACEPROC l_EGL_CreatePixmapSurface;
18 PFNEGLCREATEWINDOWSURFACEPROC l_EGL_CreateWindowSurface;
19 PFNEGLDESTROYCONTEXTPROC l_EGL_DestroyContext;
20 PFNEGLDESTROYSURFACEPROC l_EGL_DestroySurface;
21 PFNEGLGETCONFIGATTRIBPROC l_EGL_GetConfigAttrib;
22 PFNEGLGETCONFIGSPROC l_EGL_GetConfigs;
23 PFNEGLGETCURRENTDISPLAYPROC l_EGL_GetCurrentDisplay;
24 PFNEGLGETCURRENTSURFACEPROC l_EGL_GetCurrentSurface;
25 PFNEGLGETDISPLAYPROC l_EGL_GetDisplay;
26 PFNEGLGETERRORPROC l_EGL_GetError;
27 PFNEGLGETPROCADDRESSPROC l_EGL_GetProcAddress;
28 PFNEGLINITIALIZEPROC l_EGL_Initialize;
29 PFNEGLMAKECURRENTPROC l_EGL_MakeCurrent;
30 PFNEGLQUERYCONTEXTPROC l_EGL_QueryContext;
31 PFNEGLQUERYSTRINGPROC l_EGL_QueryString;
32 PFNEGLQUERYSURFACEPROC l_EGL_QuerySurface;
33 PFNEGLSWAPBUFFERSPROC l_EGL_SwapBuffers;
34 PFNEGLTERMINATEPROC l_EGL_Terminate;
35 PFNEGLWAITGLPROC l_EGL_WaitGL;
36 PFNEGLWAITNATIVEPROC l_EGL_WaitNative;
37 PFNEGLBINDTEXIMAGEPROC l_EGL_BindTexImage;
38 PFNEGLRELEASETEXIMAGEPROC l_EGL_ReleaseTexImage;
39 PFNEGLSURFACEATTRIBPROC l_EGL_SurfaceAttrib;
40 PFNEGLSWAPINTERVALPROC l_EGL_SwapInterval;
41 PFNEGLBINDAPIPROC l_EGL_BindAPI;
42 PFNEGLQUERYAPIPROC l_EGL_QueryAPI;
43 PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC l_EGL_CreatePbufferFromClientBuffer;
44 PFNEGLRELEASETHREADPROC l_EGL_ReleaseThread;
45 PFNEGLWAITCLIENTPROC l_EGL_WaitClient;
46 PFNEGLGETCURRENTCONTEXTPROC l_EGL_GetCurrentContext;
47 PFNEGLCREATESYNCPROC l_EGL_CreateSync;
48 PFNEGLDESTROYSYNCPROC l_EGL_DestroySync;
49 PFNEGLCLIENTWAITSYNCPROC l_EGL_ClientWaitSync;
50 PFNEGLGETSYNCATTRIBPROC l_EGL_GetSyncAttrib;
51 PFNEGLCREATEIMAGEPROC l_EGL_CreateImage;
52 PFNEGLDESTROYIMAGEPROC l_EGL_DestroyImage;
53 PFNEGLGETPLATFORMDISPLAYPROC l_EGL_GetPlatformDisplay;
54 PFNEGLCREATEPLATFORMWINDOWSURFACEPROC l_EGL_CreatePlatformWindowSurface;
55 PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC l_EGL_CreatePlatformPixmapSurface;
56 PFNEGLWAITSYNCPROC l_EGL_WaitSync;
57 PFNEGLSETBLOBCACHEFUNCSANDROIDPROC l_EGL_SetBlobCacheFuncsANDROID;
58 PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC l_EGL_CreateNativeClientBufferANDROID;
59 PFNEGLGETCOMPOSITORTIMINGANDROIDPROC l_EGL_GetCompositorTimingANDROID;
60 PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC l_EGL_GetCompositorTimingSupportedANDROID;
61 PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC l_EGL_GetFrameTimestampSupportedANDROID;
62 PFNEGLGETFRAMETIMESTAMPSANDROIDPROC l_EGL_GetFrameTimestampsANDROID;
63 PFNEGLGETNEXTFRAMEIDANDROIDPROC l_EGL_GetNextFrameIdANDROID;
64 PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC l_EGL_GetNativeClientBufferANDROID;
65 PFNEGLDUPNATIVEFENCEFDANDROIDPROC l_EGL_DupNativeFenceFDANDROID;
66 PFNEGLPRESENTATIONTIMEANDROIDPROC l_EGL_PresentationTimeANDROID;
67 PFNEGLCREATEDEVICEANGLEPROC l_EGL_CreateDeviceANGLE;
68 PFNEGLRELEASEDEVICEANGLEPROC l_EGL_ReleaseDeviceANGLE;
69 PFNEGLQUERYDISPLAYATTRIBANGLEPROC l_EGL_QueryDisplayAttribANGLE;
70 PFNEGLQUERYSTRINGIANGLEPROC l_EGL_QueryStringiANGLE;
71 PFNEGLHANDLEGPUSWITCHANGLEPROC l_EGL_HandleGPUSwitchANGLE;
72 PFNEGLREACQUIREHIGHPOWERGPUANGLEPROC l_EGL_ReacquireHighPowerGPUANGLE;
73 PFNEGLRELEASEHIGHPOWERGPUANGLEPROC l_EGL_ReleaseHighPowerGPUANGLE;
74 PFNEGLPROGRAMCACHEGETATTRIBANGLEPROC l_EGL_ProgramCacheGetAttribANGLE;
75 PFNEGLPROGRAMCACHEPOPULATEANGLEPROC l_EGL_ProgramCachePopulateANGLE;
76 PFNEGLPROGRAMCACHEQUERYANGLEPROC l_EGL_ProgramCacheQueryANGLE;
77 PFNEGLPROGRAMCACHERESIZEANGLEPROC l_EGL_ProgramCacheResizeANGLE;
78 PFNEGLQUERYSURFACEPOINTERANGLEPROC l_EGL_QuerySurfacePointerANGLE;
79 PFNEGLCREATESTREAMPRODUCERD3DTEXTUREANGLEPROC l_EGL_CreateStreamProducerD3DTextureANGLE;
80 PFNEGLSTREAMPOSTD3DTEXTUREANGLEPROC l_EGL_StreamPostD3DTextureANGLE;
81 PFNEGLSWAPBUFFERSWITHFRAMETOKENANGLEPROC l_EGL_SwapBuffersWithFrameTokenANGLE;
82 PFNEGLGETMSCRATEANGLEPROC l_EGL_GetMscRateANGLE;
83 PFNEGLGETSYNCVALUESCHROMIUMPROC l_EGL_GetSyncValuesCHROMIUM;
84 PFNEGLQUERYDEVICEATTRIBEXTPROC l_EGL_QueryDeviceAttribEXT;
85 PFNEGLQUERYDEVICESTRINGEXTPROC l_EGL_QueryDeviceStringEXT;
86 PFNEGLQUERYDISPLAYATTRIBEXTPROC l_EGL_QueryDisplayAttribEXT;
87 PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC l_EGL_CreatePlatformPixmapSurfaceEXT;
88 PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC l_EGL_CreatePlatformWindowSurfaceEXT;
89 PFNEGLGETPLATFORMDISPLAYEXTPROC l_EGL_GetPlatformDisplayEXT;
90 PFNEGLDEBUGMESSAGECONTROLKHRPROC l_EGL_DebugMessageControlKHR;
91 PFNEGLLABELOBJECTKHRPROC l_EGL_LabelObjectKHR;
92 PFNEGLQUERYDEBUGKHRPROC l_EGL_QueryDebugKHR;
93 PFNEGLCLIENTWAITSYNCKHRPROC l_EGL_ClientWaitSyncKHR;
94 PFNEGLCREATESYNCKHRPROC l_EGL_CreateSyncKHR;
95 PFNEGLDESTROYSYNCKHRPROC l_EGL_DestroySyncKHR;
96 PFNEGLGETSYNCATTRIBKHRPROC l_EGL_GetSyncAttribKHR;
97 PFNEGLCREATEIMAGEKHRPROC l_EGL_CreateImageKHR;
98 PFNEGLDESTROYIMAGEKHRPROC l_EGL_DestroyImageKHR;
99 PFNEGLSIGNALSYNCKHRPROC l_EGL_SignalSyncKHR;
100 PFNEGLCREATESTREAMKHRPROC l_EGL_CreateStreamKHR;
101 PFNEGLDESTROYSTREAMKHRPROC l_EGL_DestroyStreamKHR;
102 PFNEGLQUERYSTREAMKHRPROC l_EGL_QueryStreamKHR;
103 PFNEGLQUERYSTREAMU64KHRPROC l_EGL_QueryStreamu64KHR;
104 PFNEGLSTREAMATTRIBKHRPROC l_EGL_StreamAttribKHR;
105 PFNEGLSTREAMCONSUMERACQUIREKHRPROC l_EGL_StreamConsumerAcquireKHR;
106 PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC l_EGL_StreamConsumerGLTextureExternalKHR;
107 PFNEGLSTREAMCONSUMERRELEASEKHRPROC l_EGL_StreamConsumerReleaseKHR;
108 PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC l_EGL_SwapBuffersWithDamageKHR;
109 PFNEGLWAITSYNCKHRPROC l_EGL_WaitSyncKHR;
110 PFNEGLPOSTSUBBUFFERNVPROC l_EGL_PostSubBufferNV;
111 PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC l_EGL_StreamConsumerGLTextureExternalAttribsNV;
112 
113 namespace angle
114 {
LoadEGL_EGL(LoadProc loadProc)115 void LoadEGL_EGL(LoadProc loadProc)
116 {
117     l_EGL_ChooseConfig  = reinterpret_cast<PFNEGLCHOOSECONFIGPROC>(loadProc("EGL_ChooseConfig"));
118     l_EGL_CopyBuffers   = reinterpret_cast<PFNEGLCOPYBUFFERSPROC>(loadProc("EGL_CopyBuffers"));
119     l_EGL_CreateContext = reinterpret_cast<PFNEGLCREATECONTEXTPROC>(loadProc("EGL_CreateContext"));
120     l_EGL_CreatePbufferSurface =
121         reinterpret_cast<PFNEGLCREATEPBUFFERSURFACEPROC>(loadProc("EGL_CreatePbufferSurface"));
122     l_EGL_CreatePixmapSurface =
123         reinterpret_cast<PFNEGLCREATEPIXMAPSURFACEPROC>(loadProc("EGL_CreatePixmapSurface"));
124     l_EGL_CreateWindowSurface =
125         reinterpret_cast<PFNEGLCREATEWINDOWSURFACEPROC>(loadProc("EGL_CreateWindowSurface"));
126     l_EGL_DestroyContext =
127         reinterpret_cast<PFNEGLDESTROYCONTEXTPROC>(loadProc("EGL_DestroyContext"));
128     l_EGL_DestroySurface =
129         reinterpret_cast<PFNEGLDESTROYSURFACEPROC>(loadProc("EGL_DestroySurface"));
130     l_EGL_GetConfigAttrib =
131         reinterpret_cast<PFNEGLGETCONFIGATTRIBPROC>(loadProc("EGL_GetConfigAttrib"));
132     l_EGL_GetConfigs = reinterpret_cast<PFNEGLGETCONFIGSPROC>(loadProc("EGL_GetConfigs"));
133     l_EGL_GetCurrentDisplay =
134         reinterpret_cast<PFNEGLGETCURRENTDISPLAYPROC>(loadProc("EGL_GetCurrentDisplay"));
135     l_EGL_GetCurrentSurface =
136         reinterpret_cast<PFNEGLGETCURRENTSURFACEPROC>(loadProc("EGL_GetCurrentSurface"));
137     l_EGL_GetDisplay = reinterpret_cast<PFNEGLGETDISPLAYPROC>(loadProc("EGL_GetDisplay"));
138     l_EGL_GetError   = reinterpret_cast<PFNEGLGETERRORPROC>(loadProc("EGL_GetError"));
139     l_EGL_GetProcAddress =
140         reinterpret_cast<PFNEGLGETPROCADDRESSPROC>(loadProc("EGL_GetProcAddress"));
141     l_EGL_Initialize   = reinterpret_cast<PFNEGLINITIALIZEPROC>(loadProc("EGL_Initialize"));
142     l_EGL_MakeCurrent  = reinterpret_cast<PFNEGLMAKECURRENTPROC>(loadProc("EGL_MakeCurrent"));
143     l_EGL_QueryContext = reinterpret_cast<PFNEGLQUERYCONTEXTPROC>(loadProc("EGL_QueryContext"));
144     l_EGL_QueryString  = reinterpret_cast<PFNEGLQUERYSTRINGPROC>(loadProc("EGL_QueryString"));
145     l_EGL_QuerySurface = reinterpret_cast<PFNEGLQUERYSURFACEPROC>(loadProc("EGL_QuerySurface"));
146     l_EGL_SwapBuffers  = reinterpret_cast<PFNEGLSWAPBUFFERSPROC>(loadProc("EGL_SwapBuffers"));
147     l_EGL_Terminate    = reinterpret_cast<PFNEGLTERMINATEPROC>(loadProc("EGL_Terminate"));
148     l_EGL_WaitGL       = reinterpret_cast<PFNEGLWAITGLPROC>(loadProc("EGL_WaitGL"));
149     l_EGL_WaitNative   = reinterpret_cast<PFNEGLWAITNATIVEPROC>(loadProc("EGL_WaitNative"));
150     l_EGL_BindTexImage = reinterpret_cast<PFNEGLBINDTEXIMAGEPROC>(loadProc("EGL_BindTexImage"));
151     l_EGL_ReleaseTexImage =
152         reinterpret_cast<PFNEGLRELEASETEXIMAGEPROC>(loadProc("EGL_ReleaseTexImage"));
153     l_EGL_SurfaceAttrib = reinterpret_cast<PFNEGLSURFACEATTRIBPROC>(loadProc("EGL_SurfaceAttrib"));
154     l_EGL_SwapInterval  = reinterpret_cast<PFNEGLSWAPINTERVALPROC>(loadProc("EGL_SwapInterval"));
155     l_EGL_BindAPI       = reinterpret_cast<PFNEGLBINDAPIPROC>(loadProc("EGL_BindAPI"));
156     l_EGL_QueryAPI      = reinterpret_cast<PFNEGLQUERYAPIPROC>(loadProc("EGL_QueryAPI"));
157     l_EGL_CreatePbufferFromClientBuffer = reinterpret_cast<PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC>(
158         loadProc("EGL_CreatePbufferFromClientBuffer"));
159     l_EGL_ReleaseThread = reinterpret_cast<PFNEGLRELEASETHREADPROC>(loadProc("EGL_ReleaseThread"));
160     l_EGL_WaitClient    = reinterpret_cast<PFNEGLWAITCLIENTPROC>(loadProc("EGL_WaitClient"));
161     l_EGL_GetCurrentContext =
162         reinterpret_cast<PFNEGLGETCURRENTCONTEXTPROC>(loadProc("EGL_GetCurrentContext"));
163     l_EGL_CreateSync  = reinterpret_cast<PFNEGLCREATESYNCPROC>(loadProc("EGL_CreateSync"));
164     l_EGL_DestroySync = reinterpret_cast<PFNEGLDESTROYSYNCPROC>(loadProc("EGL_DestroySync"));
165     l_EGL_ClientWaitSync =
166         reinterpret_cast<PFNEGLCLIENTWAITSYNCPROC>(loadProc("EGL_ClientWaitSync"));
167     l_EGL_GetSyncAttrib = reinterpret_cast<PFNEGLGETSYNCATTRIBPROC>(loadProc("EGL_GetSyncAttrib"));
168     l_EGL_CreateImage   = reinterpret_cast<PFNEGLCREATEIMAGEPROC>(loadProc("EGL_CreateImage"));
169     l_EGL_DestroyImage  = reinterpret_cast<PFNEGLDESTROYIMAGEPROC>(loadProc("EGL_DestroyImage"));
170     l_EGL_GetPlatformDisplay =
171         reinterpret_cast<PFNEGLGETPLATFORMDISPLAYPROC>(loadProc("EGL_GetPlatformDisplay"));
172     l_EGL_CreatePlatformWindowSurface = reinterpret_cast<PFNEGLCREATEPLATFORMWINDOWSURFACEPROC>(
173         loadProc("EGL_CreatePlatformWindowSurface"));
174     l_EGL_CreatePlatformPixmapSurface = reinterpret_cast<PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC>(
175         loadProc("EGL_CreatePlatformPixmapSurface"));
176     l_EGL_WaitSync                 = reinterpret_cast<PFNEGLWAITSYNCPROC>(loadProc("EGL_WaitSync"));
177     l_EGL_SetBlobCacheFuncsANDROID = reinterpret_cast<PFNEGLSETBLOBCACHEFUNCSANDROIDPROC>(
178         loadProc("EGL_SetBlobCacheFuncsANDROID"));
179     l_EGL_CreateNativeClientBufferANDROID =
180         reinterpret_cast<PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC>(
181             loadProc("EGL_CreateNativeClientBufferANDROID"));
182     l_EGL_GetCompositorTimingANDROID = reinterpret_cast<PFNEGLGETCOMPOSITORTIMINGANDROIDPROC>(
183         loadProc("EGL_GetCompositorTimingANDROID"));
184     l_EGL_GetCompositorTimingSupportedANDROID =
185         reinterpret_cast<PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC>(
186             loadProc("EGL_GetCompositorTimingSupportedANDROID"));
187     l_EGL_GetFrameTimestampSupportedANDROID =
188         reinterpret_cast<PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC>(
189             loadProc("EGL_GetFrameTimestampSupportedANDROID"));
190     l_EGL_GetFrameTimestampsANDROID = reinterpret_cast<PFNEGLGETFRAMETIMESTAMPSANDROIDPROC>(
191         loadProc("EGL_GetFrameTimestampsANDROID"));
192     l_EGL_GetNextFrameIdANDROID =
193         reinterpret_cast<PFNEGLGETNEXTFRAMEIDANDROIDPROC>(loadProc("EGL_GetNextFrameIdANDROID"));
194     l_EGL_GetNativeClientBufferANDROID = reinterpret_cast<PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC>(
195         loadProc("EGL_GetNativeClientBufferANDROID"));
196     l_EGL_DupNativeFenceFDANDROID = reinterpret_cast<PFNEGLDUPNATIVEFENCEFDANDROIDPROC>(
197         loadProc("EGL_DupNativeFenceFDANDROID"));
198     l_EGL_PresentationTimeANDROID = reinterpret_cast<PFNEGLPRESENTATIONTIMEANDROIDPROC>(
199         loadProc("EGL_PresentationTimeANDROID"));
200     l_EGL_CreateDeviceANGLE =
201         reinterpret_cast<PFNEGLCREATEDEVICEANGLEPROC>(loadProc("EGL_CreateDeviceANGLE"));
202     l_EGL_ReleaseDeviceANGLE =
203         reinterpret_cast<PFNEGLRELEASEDEVICEANGLEPROC>(loadProc("EGL_ReleaseDeviceANGLE"));
204     l_EGL_QueryDisplayAttribANGLE = reinterpret_cast<PFNEGLQUERYDISPLAYATTRIBANGLEPROC>(
205         loadProc("EGL_QueryDisplayAttribANGLE"));
206     l_EGL_QueryStringiANGLE =
207         reinterpret_cast<PFNEGLQUERYSTRINGIANGLEPROC>(loadProc("EGL_QueryStringiANGLE"));
208     l_EGL_HandleGPUSwitchANGLE =
209         reinterpret_cast<PFNEGLHANDLEGPUSWITCHANGLEPROC>(loadProc("EGL_HandleGPUSwitchANGLE"));
210     l_EGL_ReacquireHighPowerGPUANGLE = reinterpret_cast<PFNEGLREACQUIREHIGHPOWERGPUANGLEPROC>(
211         loadProc("EGL_ReacquireHighPowerGPUANGLE"));
212     l_EGL_ReleaseHighPowerGPUANGLE = reinterpret_cast<PFNEGLRELEASEHIGHPOWERGPUANGLEPROC>(
213         loadProc("EGL_ReleaseHighPowerGPUANGLE"));
214     l_EGL_ProgramCacheGetAttribANGLE = reinterpret_cast<PFNEGLPROGRAMCACHEGETATTRIBANGLEPROC>(
215         loadProc("EGL_ProgramCacheGetAttribANGLE"));
216     l_EGL_ProgramCachePopulateANGLE = reinterpret_cast<PFNEGLPROGRAMCACHEPOPULATEANGLEPROC>(
217         loadProc("EGL_ProgramCachePopulateANGLE"));
218     l_EGL_ProgramCacheQueryANGLE =
219         reinterpret_cast<PFNEGLPROGRAMCACHEQUERYANGLEPROC>(loadProc("EGL_ProgramCacheQueryANGLE"));
220     l_EGL_ProgramCacheResizeANGLE = reinterpret_cast<PFNEGLPROGRAMCACHERESIZEANGLEPROC>(
221         loadProc("EGL_ProgramCacheResizeANGLE"));
222     l_EGL_QuerySurfacePointerANGLE = reinterpret_cast<PFNEGLQUERYSURFACEPOINTERANGLEPROC>(
223         loadProc("EGL_QuerySurfacePointerANGLE"));
224     l_EGL_CreateStreamProducerD3DTextureANGLE =
225         reinterpret_cast<PFNEGLCREATESTREAMPRODUCERD3DTEXTUREANGLEPROC>(
226             loadProc("EGL_CreateStreamProducerD3DTextureANGLE"));
227     l_EGL_StreamPostD3DTextureANGLE = reinterpret_cast<PFNEGLSTREAMPOSTD3DTEXTUREANGLEPROC>(
228         loadProc("EGL_StreamPostD3DTextureANGLE"));
229     l_EGL_SwapBuffersWithFrameTokenANGLE =
230         reinterpret_cast<PFNEGLSWAPBUFFERSWITHFRAMETOKENANGLEPROC>(
231             loadProc("EGL_SwapBuffersWithFrameTokenANGLE"));
232     l_EGL_GetMscRateANGLE =
233         reinterpret_cast<PFNEGLGETMSCRATEANGLEPROC>(loadProc("EGL_GetMscRateANGLE"));
234     l_EGL_GetSyncValuesCHROMIUM =
235         reinterpret_cast<PFNEGLGETSYNCVALUESCHROMIUMPROC>(loadProc("EGL_GetSyncValuesCHROMIUM"));
236     l_EGL_QueryDeviceAttribEXT =
237         reinterpret_cast<PFNEGLQUERYDEVICEATTRIBEXTPROC>(loadProc("EGL_QueryDeviceAttribEXT"));
238     l_EGL_QueryDeviceStringEXT =
239         reinterpret_cast<PFNEGLQUERYDEVICESTRINGEXTPROC>(loadProc("EGL_QueryDeviceStringEXT"));
240     l_EGL_QueryDisplayAttribEXT =
241         reinterpret_cast<PFNEGLQUERYDISPLAYATTRIBEXTPROC>(loadProc("EGL_QueryDisplayAttribEXT"));
242     l_EGL_CreatePlatformPixmapSurfaceEXT =
243         reinterpret_cast<PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC>(
244             loadProc("EGL_CreatePlatformPixmapSurfaceEXT"));
245     l_EGL_CreatePlatformWindowSurfaceEXT =
246         reinterpret_cast<PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC>(
247             loadProc("EGL_CreatePlatformWindowSurfaceEXT"));
248     l_EGL_GetPlatformDisplayEXT =
249         reinterpret_cast<PFNEGLGETPLATFORMDISPLAYEXTPROC>(loadProc("EGL_GetPlatformDisplayEXT"));
250     l_EGL_DebugMessageControlKHR =
251         reinterpret_cast<PFNEGLDEBUGMESSAGECONTROLKHRPROC>(loadProc("EGL_DebugMessageControlKHR"));
252     l_EGL_LabelObjectKHR =
253         reinterpret_cast<PFNEGLLABELOBJECTKHRPROC>(loadProc("EGL_LabelObjectKHR"));
254     l_EGL_QueryDebugKHR = reinterpret_cast<PFNEGLQUERYDEBUGKHRPROC>(loadProc("EGL_QueryDebugKHR"));
255     l_EGL_ClientWaitSyncKHR =
256         reinterpret_cast<PFNEGLCLIENTWAITSYNCKHRPROC>(loadProc("EGL_ClientWaitSyncKHR"));
257     l_EGL_CreateSyncKHR = reinterpret_cast<PFNEGLCREATESYNCKHRPROC>(loadProc("EGL_CreateSyncKHR"));
258     l_EGL_DestroySyncKHR =
259         reinterpret_cast<PFNEGLDESTROYSYNCKHRPROC>(loadProc("EGL_DestroySyncKHR"));
260     l_EGL_GetSyncAttribKHR =
261         reinterpret_cast<PFNEGLGETSYNCATTRIBKHRPROC>(loadProc("EGL_GetSyncAttribKHR"));
262     l_EGL_CreateImageKHR =
263         reinterpret_cast<PFNEGLCREATEIMAGEKHRPROC>(loadProc("EGL_CreateImageKHR"));
264     l_EGL_DestroyImageKHR =
265         reinterpret_cast<PFNEGLDESTROYIMAGEKHRPROC>(loadProc("EGL_DestroyImageKHR"));
266     l_EGL_SignalSyncKHR = reinterpret_cast<PFNEGLSIGNALSYNCKHRPROC>(loadProc("EGL_SignalSyncKHR"));
267     l_EGL_CreateStreamKHR =
268         reinterpret_cast<PFNEGLCREATESTREAMKHRPROC>(loadProc("EGL_CreateStreamKHR"));
269     l_EGL_DestroyStreamKHR =
270         reinterpret_cast<PFNEGLDESTROYSTREAMKHRPROC>(loadProc("EGL_DestroyStreamKHR"));
271     l_EGL_QueryStreamKHR =
272         reinterpret_cast<PFNEGLQUERYSTREAMKHRPROC>(loadProc("EGL_QueryStreamKHR"));
273     l_EGL_QueryStreamu64KHR =
274         reinterpret_cast<PFNEGLQUERYSTREAMU64KHRPROC>(loadProc("EGL_QueryStreamu64KHR"));
275     l_EGL_StreamAttribKHR =
276         reinterpret_cast<PFNEGLSTREAMATTRIBKHRPROC>(loadProc("EGL_StreamAttribKHR"));
277     l_EGL_StreamConsumerAcquireKHR = reinterpret_cast<PFNEGLSTREAMCONSUMERACQUIREKHRPROC>(
278         loadProc("EGL_StreamConsumerAcquireKHR"));
279     l_EGL_StreamConsumerGLTextureExternalKHR =
280         reinterpret_cast<PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC>(
281             loadProc("EGL_StreamConsumerGLTextureExternalKHR"));
282     l_EGL_StreamConsumerReleaseKHR = reinterpret_cast<PFNEGLSTREAMCONSUMERRELEASEKHRPROC>(
283         loadProc("EGL_StreamConsumerReleaseKHR"));
284     l_EGL_SwapBuffersWithDamageKHR = reinterpret_cast<PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC>(
285         loadProc("EGL_SwapBuffersWithDamageKHR"));
286     l_EGL_WaitSyncKHR = reinterpret_cast<PFNEGLWAITSYNCKHRPROC>(loadProc("EGL_WaitSyncKHR"));
287     l_EGL_PostSubBufferNV =
288         reinterpret_cast<PFNEGLPOSTSUBBUFFERNVPROC>(loadProc("EGL_PostSubBufferNV"));
289     l_EGL_StreamConsumerGLTextureExternalAttribsNV =
290         reinterpret_cast<PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC>(
291             loadProc("EGL_StreamConsumerGLTextureExternalAttribsNV"));
292 }
293 }  // namespace angle
294