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, egl::Display *dpyPacked); 79 ScopedContextMutexLock GetContextLock_CreateImage(Thread *thread, 80 egl::Display *dpyPacked, 81 gl::ContextID ctxPacked); 82 ScopedContextMutexLock GetContextLock_CreatePlatformPixmapSurface(Thread *thread, 83 egl::Display *dpyPacked); 84 ScopedContextMutexLock GetContextLock_CreatePlatformWindowSurface(Thread *thread, 85 egl::Display *dpyPacked); 86 ScopedContextMutexLock GetContextLock_CreateSync(Thread *thread, egl::Display *dpyPacked); 87 ScopedContextMutexLock GetContextLock_DestroyImage(Thread *thread, egl::Display *dpyPacked); 88 ScopedContextMutexLock GetContextLock_DestroySync(Thread *thread, egl::Display *dpyPacked); 89 ScopedContextMutexLock GetContextLock_GetPlatformDisplay(Thread *thread); 90 ScopedContextMutexLock GetContextLock_GetSyncAttrib(Thread *thread, 91 egl::Display *dpyPacked, 92 EGLint attribute); 93 ScopedContextMutexLock GetContextLock_WaitSync(Thread *thread, egl::Display *dpyPacked); 94 95 // EGL_ANDROID_blob_cache 96 ScopedContextMutexLock GetContextLock_SetBlobCacheFuncsANDROID(Thread *thread, 97 egl::Display *dpyPacked); 98 99 // EGL_ANDROID_create_native_client_buffer 100 ScopedContextMutexLock GetContextLock_CreateNativeClientBufferANDROID(Thread *thread); 101 102 // EGL_ANDROID_get_frame_timestamps 103 ScopedContextMutexLock GetContextLock_GetCompositorTimingSupportedANDROID(Thread *thread, 104 egl::Display *dpyPacked); 105 ScopedContextMutexLock GetContextLock_GetCompositorTimingANDROID(Thread *thread, 106 egl::Display *dpyPacked); 107 ScopedContextMutexLock GetContextLock_GetNextFrameIdANDROID(Thread *thread, 108 egl::Display *dpyPacked); 109 ScopedContextMutexLock GetContextLock_GetFrameTimestampSupportedANDROID(Thread *thread, 110 egl::Display *dpyPacked); 111 ScopedContextMutexLock GetContextLock_GetFrameTimestampsANDROID(Thread *thread, 112 egl::Display *dpyPacked); 113 114 // EGL_ANDROID_get_native_client_buffer 115 ScopedContextMutexLock GetContextLock_GetNativeClientBufferANDROID(Thread *thread); 116 117 // EGL_ANDROID_native_fence_sync 118 ScopedContextMutexLock GetContextLock_DupNativeFenceFDANDROID(Thread *thread, 119 egl::Display *dpyPacked); 120 121 // EGL_ANDROID_presentation_time 122 ScopedContextMutexLock GetContextLock_PresentationTimeANDROID(Thread *thread, 123 egl::Display *dpyPacked); 124 125 // EGL_ANGLE_device_creation 126 ScopedContextMutexLock GetContextLock_CreateDeviceANGLE(Thread *thread); 127 ScopedContextMutexLock GetContextLock_ReleaseDeviceANGLE(Thread *thread); 128 129 // EGL_ANGLE_external_context_and_surface 130 ScopedContextMutexLock GetContextLock_AcquireExternalContextANGLE(Thread *thread, 131 egl::Display *dpyPacked); 132 ScopedContextMutexLock GetContextLock_ReleaseExternalContextANGLE(Thread *thread, 133 egl::Display *dpyPacked); 134 135 // EGL_ANGLE_feature_control 136 ScopedContextMutexLock GetContextLock_QueryStringiANGLE(Thread *thread, egl::Display *dpyPacked); 137 ScopedContextMutexLock GetContextLock_QueryDisplayAttribANGLE(Thread *thread, 138 egl::Display *dpyPacked, 139 EGLint attribute); 140 141 // EGL_ANGLE_metal_shared_event_sync 142 ScopedContextMutexLock GetContextLock_CopyMetalSharedEventANGLE(Thread *thread, 143 egl::Display *dpyPacked); 144 145 // EGL_ANGLE_no_error 146 ScopedContextMutexLock GetContextLock_SetValidationEnabledANGLE(Thread *thread); 147 148 // EGL_ANGLE_power_preference 149 ScopedContextMutexLock GetContextLock_ReleaseHighPowerGPUANGLE(Thread *thread, 150 egl::Display *dpyPacked, 151 gl::ContextID ctxPacked); 152 ScopedContextMutexLock GetContextLock_ReacquireHighPowerGPUANGLE(Thread *thread, 153 egl::Display *dpyPacked, 154 gl::ContextID ctxPacked); 155 ScopedContextMutexLock GetContextLock_HandleGPUSwitchANGLE(Thread *thread, egl::Display *dpyPacked); 156 ScopedContextMutexLock GetContextLock_ForceGPUSwitchANGLE(Thread *thread, egl::Display *dpyPacked); 157 158 // EGL_ANGLE_prepare_swap_buffers 159 ScopedContextMutexLock GetContextLock_PrepareSwapBuffersANGLE(Thread *thread, 160 egl::Display *dpyPacked); 161 162 // EGL_ANGLE_program_cache_control 163 ScopedContextMutexLock GetContextLock_ProgramCacheGetAttribANGLE(Thread *thread, 164 egl::Display *dpyPacked); 165 ScopedContextMutexLock GetContextLock_ProgramCacheQueryANGLE(Thread *thread, 166 egl::Display *dpyPacked); 167 ScopedContextMutexLock GetContextLock_ProgramCachePopulateANGLE(Thread *thread, 168 egl::Display *dpyPacked); 169 ScopedContextMutexLock GetContextLock_ProgramCacheResizeANGLE(Thread *thread, 170 egl::Display *dpyPacked); 171 172 // EGL_ANGLE_query_surface_pointer 173 ScopedContextMutexLock GetContextLock_QuerySurfacePointerANGLE(Thread *thread, 174 egl::Display *dpyPacked, 175 EGLint attribute); 176 177 // EGL_ANGLE_stream_producer_d3d_texture 178 ScopedContextMutexLock GetContextLock_CreateStreamProducerD3DTextureANGLE(Thread *thread, 179 egl::Display *dpyPacked); 180 ScopedContextMutexLock GetContextLock_StreamPostD3DTextureANGLE(Thread *thread, 181 egl::Display *dpyPacked); 182 183 // EGL_ANGLE_swap_with_frame_token 184 ScopedContextMutexLock GetContextLock_SwapBuffersWithFrameTokenANGLE(Thread *thread, 185 egl::Display *dpyPacked); 186 187 // EGL_ANGLE_sync_control_rate 188 ScopedContextMutexLock GetContextLock_GetMscRateANGLE(Thread *thread, egl::Display *dpyPacked); 189 190 // EGL_ANGLE_vulkan_image 191 ScopedContextMutexLock GetContextLock_ExportVkImageANGLE(Thread *thread, egl::Display *dpyPacked); 192 193 // EGL_ANGLE_wait_until_work_scheduled 194 ScopedContextMutexLock GetContextLock_WaitUntilWorkScheduledANGLE(Thread *thread, 195 egl::Display *dpyPacked); 196 197 // EGL_CHROMIUM_sync_control 198 ScopedContextMutexLock GetContextLock_GetSyncValuesCHROMIUM(Thread *thread, 199 egl::Display *dpyPacked); 200 201 // EGL_EXT_device_query 202 ScopedContextMutexLock GetContextLock_QueryDeviceAttribEXT(Thread *thread, EGLint attribute); 203 ScopedContextMutexLock GetContextLock_QueryDeviceStringEXT(Thread *thread); 204 ScopedContextMutexLock GetContextLock_QueryDisplayAttribEXT(Thread *thread, 205 egl::Display *dpyPacked, 206 EGLint attribute); 207 208 // EGL_EXT_image_dma_buf_import_modifiers 209 ScopedContextMutexLock GetContextLock_QueryDmaBufFormatsEXT(Thread *thread, 210 egl::Display *dpyPacked); 211 ScopedContextMutexLock GetContextLock_QueryDmaBufModifiersEXT(Thread *thread, 212 egl::Display *dpyPacked); 213 214 // EGL_EXT_platform_base 215 ScopedContextMutexLock GetContextLock_CreatePlatformPixmapSurfaceEXT(Thread *thread, 216 egl::Display *dpyPacked); 217 ScopedContextMutexLock GetContextLock_CreatePlatformWindowSurfaceEXT(Thread *thread, 218 egl::Display *dpyPacked); 219 ScopedContextMutexLock GetContextLock_GetPlatformDisplayEXT(Thread *thread); 220 221 // EGL_KHR_debug 222 ScopedContextMutexLock GetContextLock_DebugMessageControlKHR(Thread *thread); 223 ScopedContextMutexLock GetContextLock_LabelObjectKHR(Thread *thread, egl::Display *displayPacked); 224 ScopedContextMutexLock GetContextLock_QueryDebugKHR(Thread *thread, EGLint attribute); 225 226 // EGL_KHR_fence_sync 227 ScopedContextMutexLock GetContextLock_ClientWaitSyncKHR(Thread *thread, egl::Display *dpyPacked); 228 ScopedContextMutexLock GetContextLock_CreateSyncKHR(Thread *thread, egl::Display *dpyPacked); 229 ScopedContextMutexLock GetContextLock_DestroySyncKHR(Thread *thread, egl::Display *dpyPacked); 230 ScopedContextMutexLock GetContextLock_GetSyncAttribKHR(Thread *thread, 231 egl::Display *dpyPacked, 232 EGLint attribute); 233 234 // EGL_KHR_image 235 ScopedContextMutexLock GetContextLock_CreateImageKHR(Thread *thread, 236 egl::Display *dpyPacked, 237 gl::ContextID ctxPacked); 238 ScopedContextMutexLock GetContextLock_DestroyImageKHR(Thread *thread, egl::Display *dpyPacked); 239 240 // EGL_KHR_lock_surface3 241 ScopedContextMutexLock GetContextLock_LockSurfaceKHR(Thread *thread, egl::Display *dpyPacked); 242 ScopedContextMutexLock GetContextLock_QuerySurface64KHR(Thread *thread, 243 egl::Display *dpyPacked, 244 EGLint attribute); 245 ScopedContextMutexLock GetContextLock_UnlockSurfaceKHR(Thread *thread, egl::Display *dpyPacked); 246 247 // EGL_KHR_partial_update 248 ScopedContextMutexLock GetContextLock_SetDamageRegionKHR(Thread *thread, egl::Display *dpyPacked); 249 250 // EGL_KHR_reusable_sync 251 ScopedContextMutexLock GetContextLock_SignalSyncKHR(Thread *thread, egl::Display *dpyPacked); 252 253 // EGL_KHR_stream 254 ScopedContextMutexLock GetContextLock_CreateStreamKHR(Thread *thread, egl::Display *dpyPacked); 255 ScopedContextMutexLock GetContextLock_DestroyStreamKHR(Thread *thread, egl::Display *dpyPacked); 256 ScopedContextMutexLock GetContextLock_QueryStreamKHR(Thread *thread, 257 egl::Display *dpyPacked, 258 EGLenum attribute); 259 ScopedContextMutexLock GetContextLock_QueryStreamu64KHR(Thread *thread, 260 egl::Display *dpyPacked, 261 EGLenum attribute); 262 ScopedContextMutexLock GetContextLock_StreamAttribKHR(Thread *thread, 263 egl::Display *dpyPacked, 264 EGLenum attribute); 265 266 // EGL_KHR_stream_consumer_gltexture 267 ScopedContextMutexLock GetContextLock_StreamConsumerAcquireKHR(Thread *thread, 268 egl::Display *dpyPacked); 269 ScopedContextMutexLock GetContextLock_StreamConsumerGLTextureExternalKHR(Thread *thread, 270 egl::Display *dpyPacked); 271 ScopedContextMutexLock GetContextLock_StreamConsumerReleaseKHR(Thread *thread, 272 egl::Display *dpyPacked); 273 274 // EGL_KHR_swap_buffers_with_damage 275 ScopedContextMutexLock GetContextLock_SwapBuffersWithDamageKHR(Thread *thread, 276 egl::Display *dpyPacked); 277 278 // EGL_KHR_wait_sync 279 ScopedContextMutexLock GetContextLock_WaitSyncKHR(Thread *thread, egl::Display *dpyPacked); 280 281 // EGL_NV_post_sub_buffer 282 ScopedContextMutexLock GetContextLock_PostSubBufferNV(Thread *thread, egl::Display *dpyPacked); 283 284 // EGL_NV_stream_consumer_gltexture_yuv 285 ScopedContextMutexLock GetContextLock_StreamConsumerGLTextureExternalAttribsNV( 286 Thread *thread, 287 egl::Display *dpyPacked); 288 } // namespace egl 289 290 #endif // LIBGLESV2_EGL_CONTEXT_LOCK_AUTOGEN_H_ 291