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 2023 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_context_lock_autogen.h: 9 // Context Lock functions for the EGL entry points. 10 11 #ifndef LIBGLESV2_EGL_CONTEXT_LOCK_AUTOGEN_H_ 12 #define LIBGLESV2_EGL_CONTEXT_LOCK_AUTOGEN_H_ 13 14 #include "libGLESv2/global_state.h" 15 16 namespace egl 17 { 18 19 // EGL 1.0 20 ScopedContextMutexLock GetContextLock_ChooseConfig(Thread *thread, egl::Display *dpyPacked); 21 ScopedContextMutexLock GetContextLock_CopyBuffers(Thread *thread, egl::Display *dpyPacked); 22 ScopedContextMutexLock GetContextLock_CreateContext(Thread *thread, 23 egl::Display *dpyPacked, 24 gl::ContextID share_contextPacked); 25 ScopedContextMutexLock GetContextLock_CreatePbufferSurface(Thread *thread, egl::Display *dpyPacked); 26 ScopedContextMutexLock GetContextLock_CreatePixmapSurface(Thread *thread, egl::Display *dpyPacked); 27 ScopedContextMutexLock GetContextLock_CreateWindowSurface(Thread *thread, egl::Display *dpyPacked); 28 ScopedContextMutexLock GetContextLock_DestroyContext(Thread *thread, 29 egl::Display *dpyPacked, 30 gl::ContextID ctxPacked); 31 ScopedContextMutexLock GetContextLock_DestroySurface(Thread *thread, egl::Display *dpyPacked); 32 ScopedContextMutexLock GetContextLock_GetConfigAttrib(Thread *thread, 33 egl::Display *dpyPacked, 34 EGLint attribute); 35 ScopedContextMutexLock GetContextLock_GetConfigs(Thread *thread, egl::Display *dpyPacked); 36 ScopedContextMutexLock GetContextLock_GetCurrentDisplay(Thread *thread); 37 ScopedContextMutexLock GetContextLock_GetCurrentSurface(Thread *thread); 38 ScopedContextMutexLock GetContextLock_GetDisplay(Thread *thread); 39 ScopedContextMutexLock GetContextLock_GetError(Thread *thread); 40 ScopedContextMutexLock GetContextLock_GetProcAddress(Thread *thread); 41 ScopedContextMutexLock GetContextLock_Initialize(Thread *thread, egl::Display *dpyPacked); 42 ScopedContextMutexLock GetContextLock_MakeCurrent(Thread *thread, 43 egl::Display *dpyPacked, 44 gl::ContextID ctxPacked); 45 ScopedContextMutexLock GetContextLock_QueryContext(Thread *thread, 46 egl::Display *dpyPacked, 47 gl::ContextID ctxPacked, 48 EGLint attribute); 49 ScopedContextMutexLock GetContextLock_QueryString(Thread *thread, egl::Display *dpyPacked); 50 ScopedContextMutexLock GetContextLock_QuerySurface(Thread *thread, 51 egl::Display *dpyPacked, 52 EGLint attribute); 53 ScopedContextMutexLock GetContextLock_SwapBuffers(Thread *thread, egl::Display *dpyPacked); 54 ScopedContextMutexLock GetContextLock_Terminate(Thread *thread, egl::Display *dpyPacked); 55 ScopedContextMutexLock GetContextLock_WaitGL(Thread *thread); 56 ScopedContextMutexLock GetContextLock_WaitNative(Thread *thread); 57 58 // EGL 1.1 59 ScopedContextMutexLock GetContextLock_BindTexImage(Thread *thread, egl::Display *dpyPacked); 60 ScopedContextMutexLock GetContextLock_ReleaseTexImage(Thread *thread, egl::Display *dpyPacked); 61 ScopedContextMutexLock GetContextLock_SurfaceAttrib(Thread *thread, 62 egl::Display *dpyPacked, 63 EGLint attribute); 64 ScopedContextMutexLock GetContextLock_SwapInterval(Thread *thread, egl::Display *dpyPacked); 65 66 // EGL 1.2 67 ScopedContextMutexLock GetContextLock_BindAPI(Thread *thread); 68 ScopedContextMutexLock GetContextLock_CreatePbufferFromClientBuffer(Thread *thread, 69 egl::Display *dpyPacked); 70 ScopedContextMutexLock GetContextLock_QueryAPI(Thread *thread); 71 ScopedContextMutexLock GetContextLock_ReleaseThread(Thread *thread); 72 ScopedContextMutexLock GetContextLock_WaitClient(Thread *thread); 73 74 // EGL 1.4 75 ScopedContextMutexLock GetContextLock_GetCurrentContext(Thread *thread); 76 77 // EGL 1.5 78 ScopedContextMutexLock GetContextLock_ClientWaitSync(Thread *thread, 79 egl::Display *dpyPacked, 80 EGLint flags); 81 ScopedContextMutexLock GetContextLock_CreateImage(Thread *thread, 82 egl::Display *dpyPacked, 83 gl::ContextID ctxPacked); 84 ScopedContextMutexLock GetContextLock_CreatePlatformPixmapSurface(Thread *thread, 85 egl::Display *dpyPacked); 86 ScopedContextMutexLock GetContextLock_CreatePlatformWindowSurface(Thread *thread, 87 egl::Display *dpyPacked); 88 ScopedContextMutexLock GetContextLock_CreateSync(Thread *thread, egl::Display *dpyPacked); 89 ScopedContextMutexLock GetContextLock_DestroyImage(Thread *thread, egl::Display *dpyPacked); 90 ScopedContextMutexLock GetContextLock_DestroySync(Thread *thread, egl::Display *dpyPacked); 91 ScopedContextMutexLock GetContextLock_GetPlatformDisplay(Thread *thread); 92 ScopedContextMutexLock GetContextLock_GetSyncAttrib(Thread *thread, 93 egl::Display *dpyPacked, 94 EGLint attribute); 95 ScopedContextMutexLock GetContextLock_WaitSync(Thread *thread, 96 egl::Display *dpyPacked, 97 EGLint flags); 98 99 // EGL_ANDROID_blob_cache 100 ScopedContextMutexLock GetContextLock_SetBlobCacheFuncsANDROID(Thread *thread, 101 egl::Display *dpyPacked); 102 103 // EGL_ANDROID_create_native_client_buffer 104 ScopedContextMutexLock GetContextLock_CreateNativeClientBufferANDROID(Thread *thread); 105 106 // EGL_ANDROID_get_frame_timestamps 107 ScopedContextMutexLock GetContextLock_GetCompositorTimingSupportedANDROID(Thread *thread, 108 egl::Display *dpyPacked); 109 ScopedContextMutexLock GetContextLock_GetCompositorTimingANDROID(Thread *thread, 110 egl::Display *dpyPacked); 111 ScopedContextMutexLock GetContextLock_GetNextFrameIdANDROID(Thread *thread, 112 egl::Display *dpyPacked); 113 ScopedContextMutexLock GetContextLock_GetFrameTimestampSupportedANDROID(Thread *thread, 114 egl::Display *dpyPacked); 115 ScopedContextMutexLock GetContextLock_GetFrameTimestampsANDROID(Thread *thread, 116 egl::Display *dpyPacked); 117 118 // EGL_ANDROID_get_native_client_buffer 119 ScopedContextMutexLock GetContextLock_GetNativeClientBufferANDROID(Thread *thread); 120 121 // EGL_ANDROID_native_fence_sync 122 ScopedContextMutexLock GetContextLock_DupNativeFenceFDANDROID(Thread *thread, 123 egl::Display *dpyPacked); 124 125 // EGL_ANDROID_presentation_time 126 ScopedContextMutexLock GetContextLock_PresentationTimeANDROID(Thread *thread, 127 egl::Display *dpyPacked); 128 129 // EGL_ANGLE_device_creation 130 ScopedContextMutexLock GetContextLock_CreateDeviceANGLE(Thread *thread); 131 ScopedContextMutexLock GetContextLock_ReleaseDeviceANGLE(Thread *thread); 132 133 // EGL_ANGLE_external_context_and_surface 134 ScopedContextMutexLock GetContextLock_AcquireExternalContextANGLE(Thread *thread, 135 egl::Display *dpyPacked); 136 ScopedContextMutexLock GetContextLock_ReleaseExternalContextANGLE(Thread *thread, 137 egl::Display *dpyPacked); 138 139 // EGL_ANGLE_feature_control 140 ScopedContextMutexLock GetContextLock_QueryStringiANGLE(Thread *thread, egl::Display *dpyPacked); 141 ScopedContextMutexLock GetContextLock_QueryDisplayAttribANGLE(Thread *thread, 142 egl::Display *dpyPacked, 143 EGLint attribute); 144 145 // EGL_ANGLE_metal_shared_event_sync 146 ScopedContextMutexLock GetContextLock_CopyMetalSharedEventANGLE(Thread *thread, 147 egl::Display *dpyPacked); 148 149 // EGL_ANGLE_no_error 150 ScopedContextMutexLock GetContextLock_SetValidationEnabledANGLE(Thread *thread); 151 152 // EGL_ANGLE_power_preference 153 ScopedContextMutexLock GetContextLock_ReleaseHighPowerGPUANGLE(Thread *thread, 154 egl::Display *dpyPacked, 155 gl::ContextID ctxPacked); 156 ScopedContextMutexLock GetContextLock_ReacquireHighPowerGPUANGLE(Thread *thread, 157 egl::Display *dpyPacked, 158 gl::ContextID ctxPacked); 159 ScopedContextMutexLock GetContextLock_HandleGPUSwitchANGLE(Thread *thread, egl::Display *dpyPacked); 160 ScopedContextMutexLock GetContextLock_ForceGPUSwitchANGLE(Thread *thread, egl::Display *dpyPacked); 161 162 // EGL_ANGLE_prepare_swap_buffers 163 ScopedContextMutexLock GetContextLock_PrepareSwapBuffersANGLE(Thread *thread, 164 egl::Display *dpyPacked); 165 166 // EGL_ANGLE_program_cache_control 167 ScopedContextMutexLock GetContextLock_ProgramCacheGetAttribANGLE(Thread *thread, 168 egl::Display *dpyPacked); 169 ScopedContextMutexLock GetContextLock_ProgramCacheQueryANGLE(Thread *thread, 170 egl::Display *dpyPacked); 171 ScopedContextMutexLock GetContextLock_ProgramCachePopulateANGLE(Thread *thread, 172 egl::Display *dpyPacked); 173 ScopedContextMutexLock GetContextLock_ProgramCacheResizeANGLE(Thread *thread, 174 egl::Display *dpyPacked); 175 176 // EGL_ANGLE_query_surface_pointer 177 ScopedContextMutexLock GetContextLock_QuerySurfacePointerANGLE(Thread *thread, 178 egl::Display *dpyPacked, 179 EGLint attribute); 180 181 // EGL_ANGLE_stream_producer_d3d_texture 182 ScopedContextMutexLock GetContextLock_CreateStreamProducerD3DTextureANGLE(Thread *thread, 183 egl::Display *dpyPacked); 184 ScopedContextMutexLock GetContextLock_StreamPostD3DTextureANGLE(Thread *thread, 185 egl::Display *dpyPacked); 186 187 // EGL_ANGLE_swap_with_frame_token 188 ScopedContextMutexLock GetContextLock_SwapBuffersWithFrameTokenANGLE(Thread *thread, 189 egl::Display *dpyPacked); 190 191 // EGL_ANGLE_sync_control_rate 192 ScopedContextMutexLock GetContextLock_GetMscRateANGLE(Thread *thread, egl::Display *dpyPacked); 193 194 // EGL_ANGLE_vulkan_image 195 ScopedContextMutexLock GetContextLock_ExportVkImageANGLE(Thread *thread, egl::Display *dpyPacked); 196 197 // EGL_ANGLE_wait_until_work_scheduled 198 ScopedContextMutexLock GetContextLock_WaitUntilWorkScheduledANGLE(Thread *thread, 199 egl::Display *dpyPacked); 200 201 // EGL_CHROMIUM_sync_control 202 ScopedContextMutexLock GetContextLock_GetSyncValuesCHROMIUM(Thread *thread, 203 egl::Display *dpyPacked); 204 205 // EGL_EXT_device_query 206 ScopedContextMutexLock GetContextLock_QueryDeviceAttribEXT(Thread *thread, EGLint attribute); 207 ScopedContextMutexLock GetContextLock_QueryDeviceStringEXT(Thread *thread); 208 ScopedContextMutexLock GetContextLock_QueryDisplayAttribEXT(Thread *thread, 209 egl::Display *dpyPacked, 210 EGLint attribute); 211 212 // EGL_EXT_image_dma_buf_import_modifiers 213 ScopedContextMutexLock GetContextLock_QueryDmaBufFormatsEXT(Thread *thread, 214 egl::Display *dpyPacked); 215 ScopedContextMutexLock GetContextLock_QueryDmaBufModifiersEXT(Thread *thread, 216 egl::Display *dpyPacked); 217 218 // EGL_EXT_platform_base 219 ScopedContextMutexLock GetContextLock_CreatePlatformPixmapSurfaceEXT(Thread *thread, 220 egl::Display *dpyPacked); 221 ScopedContextMutexLock GetContextLock_CreatePlatformWindowSurfaceEXT(Thread *thread, 222 egl::Display *dpyPacked); 223 ScopedContextMutexLock GetContextLock_GetPlatformDisplayEXT(Thread *thread); 224 225 // EGL_KHR_debug 226 ScopedContextMutexLock GetContextLock_DebugMessageControlKHR(Thread *thread); 227 ScopedContextMutexLock GetContextLock_LabelObjectKHR(Thread *thread, egl::Display *displayPacked); 228 ScopedContextMutexLock GetContextLock_QueryDebugKHR(Thread *thread, EGLint attribute); 229 230 // EGL_KHR_fence_sync 231 ScopedContextMutexLock GetContextLock_ClientWaitSyncKHR(Thread *thread, 232 egl::Display *dpyPacked, 233 EGLint flags); 234 ScopedContextMutexLock GetContextLock_CreateSyncKHR(Thread *thread, egl::Display *dpyPacked); 235 ScopedContextMutexLock GetContextLock_DestroySyncKHR(Thread *thread, egl::Display *dpyPacked); 236 ScopedContextMutexLock GetContextLock_GetSyncAttribKHR(Thread *thread, 237 egl::Display *dpyPacked, 238 EGLint attribute); 239 240 // EGL_KHR_image 241 ScopedContextMutexLock GetContextLock_CreateImageKHR(Thread *thread, 242 egl::Display *dpyPacked, 243 gl::ContextID ctxPacked); 244 ScopedContextMutexLock GetContextLock_DestroyImageKHR(Thread *thread, egl::Display *dpyPacked); 245 246 // EGL_KHR_lock_surface3 247 ScopedContextMutexLock GetContextLock_LockSurfaceKHR(Thread *thread, egl::Display *dpyPacked); 248 ScopedContextMutexLock GetContextLock_QuerySurface64KHR(Thread *thread, 249 egl::Display *dpyPacked, 250 EGLint attribute); 251 ScopedContextMutexLock GetContextLock_UnlockSurfaceKHR(Thread *thread, egl::Display *dpyPacked); 252 253 // EGL_KHR_partial_update 254 ScopedContextMutexLock GetContextLock_SetDamageRegionKHR(Thread *thread, egl::Display *dpyPacked); 255 256 // EGL_KHR_reusable_sync 257 ScopedContextMutexLock GetContextLock_SignalSyncKHR(Thread *thread, egl::Display *dpyPacked); 258 259 // EGL_KHR_stream 260 ScopedContextMutexLock GetContextLock_CreateStreamKHR(Thread *thread, egl::Display *dpyPacked); 261 ScopedContextMutexLock GetContextLock_DestroyStreamKHR(Thread *thread, egl::Display *dpyPacked); 262 ScopedContextMutexLock GetContextLock_QueryStreamKHR(Thread *thread, 263 egl::Display *dpyPacked, 264 EGLenum attribute); 265 ScopedContextMutexLock GetContextLock_QueryStreamu64KHR(Thread *thread, 266 egl::Display *dpyPacked, 267 EGLenum attribute); 268 ScopedContextMutexLock GetContextLock_StreamAttribKHR(Thread *thread, 269 egl::Display *dpyPacked, 270 EGLenum attribute); 271 272 // EGL_KHR_stream_consumer_gltexture 273 ScopedContextMutexLock GetContextLock_StreamConsumerAcquireKHR(Thread *thread, 274 egl::Display *dpyPacked); 275 ScopedContextMutexLock GetContextLock_StreamConsumerGLTextureExternalKHR(Thread *thread, 276 egl::Display *dpyPacked); 277 ScopedContextMutexLock GetContextLock_StreamConsumerReleaseKHR(Thread *thread, 278 egl::Display *dpyPacked); 279 280 // EGL_KHR_swap_buffers_with_damage 281 ScopedContextMutexLock GetContextLock_SwapBuffersWithDamageKHR(Thread *thread, 282 egl::Display *dpyPacked); 283 284 // EGL_KHR_wait_sync 285 ScopedContextMutexLock GetContextLock_WaitSyncKHR(Thread *thread, 286 egl::Display *dpyPacked, 287 EGLint flags); 288 289 // EGL_NV_post_sub_buffer 290 ScopedContextMutexLock GetContextLock_PostSubBufferNV(Thread *thread, egl::Display *dpyPacked); 291 292 // EGL_NV_stream_consumer_gltexture_yuv 293 ScopedContextMutexLock GetContextLock_StreamConsumerGLTextureExternalAttribsNV( 294 Thread *thread, 295 egl::Display *dpyPacked); 296 } // namespace egl 297 298 #endif // LIBGLESV2_EGL_CONTEXT_LOCK_AUTOGEN_H_ 299