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_device_vulkan 134 ScopedContextMutexLock GetContextLock_LockVulkanQueueANGLE(Thread *thread, egl::Display *dpyPacked); 135 ScopedContextMutexLock GetContextLock_UnlockVulkanQueueANGLE(Thread *thread, 136 egl::Display *dpyPacked); 137 138 // EGL_ANGLE_external_context_and_surface 139 ScopedContextMutexLock GetContextLock_AcquireExternalContextANGLE(Thread *thread, 140 egl::Display *dpyPacked); 141 ScopedContextMutexLock GetContextLock_ReleaseExternalContextANGLE(Thread *thread, 142 egl::Display *dpyPacked); 143 144 // EGL_ANGLE_feature_control 145 ScopedContextMutexLock GetContextLock_QueryStringiANGLE(Thread *thread, egl::Display *dpyPacked); 146 ScopedContextMutexLock GetContextLock_QueryDisplayAttribANGLE(Thread *thread, 147 egl::Display *dpyPacked, 148 EGLint attribute); 149 150 // EGL_ANGLE_metal_shared_event_sync 151 ScopedContextMutexLock GetContextLock_CopyMetalSharedEventANGLE(Thread *thread, 152 egl::Display *dpyPacked); 153 154 // EGL_ANGLE_no_error 155 ScopedContextMutexLock GetContextLock_SetValidationEnabledANGLE(Thread *thread); 156 157 // EGL_ANGLE_power_preference 158 ScopedContextMutexLock GetContextLock_ReleaseHighPowerGPUANGLE(Thread *thread, 159 egl::Display *dpyPacked, 160 gl::ContextID ctxPacked); 161 ScopedContextMutexLock GetContextLock_ReacquireHighPowerGPUANGLE(Thread *thread, 162 egl::Display *dpyPacked, 163 gl::ContextID ctxPacked); 164 ScopedContextMutexLock GetContextLock_HandleGPUSwitchANGLE(Thread *thread, egl::Display *dpyPacked); 165 ScopedContextMutexLock GetContextLock_ForceGPUSwitchANGLE(Thread *thread, egl::Display *dpyPacked); 166 167 // EGL_ANGLE_prepare_swap_buffers 168 ScopedContextMutexLock GetContextLock_PrepareSwapBuffersANGLE(Thread *thread, 169 egl::Display *dpyPacked); 170 171 // EGL_ANGLE_program_cache_control 172 ScopedContextMutexLock GetContextLock_ProgramCacheGetAttribANGLE(Thread *thread, 173 egl::Display *dpyPacked); 174 ScopedContextMutexLock GetContextLock_ProgramCacheQueryANGLE(Thread *thread, 175 egl::Display *dpyPacked); 176 ScopedContextMutexLock GetContextLock_ProgramCachePopulateANGLE(Thread *thread, 177 egl::Display *dpyPacked); 178 ScopedContextMutexLock GetContextLock_ProgramCacheResizeANGLE(Thread *thread, 179 egl::Display *dpyPacked); 180 181 // EGL_ANGLE_query_surface_pointer 182 ScopedContextMutexLock GetContextLock_QuerySurfacePointerANGLE(Thread *thread, 183 egl::Display *dpyPacked, 184 EGLint attribute); 185 186 // EGL_ANGLE_stream_producer_d3d_texture 187 ScopedContextMutexLock GetContextLock_CreateStreamProducerD3DTextureANGLE(Thread *thread, 188 egl::Display *dpyPacked); 189 ScopedContextMutexLock GetContextLock_StreamPostD3DTextureANGLE(Thread *thread, 190 egl::Display *dpyPacked); 191 192 // EGL_ANGLE_sync_control_rate 193 ScopedContextMutexLock GetContextLock_GetMscRateANGLE(Thread *thread, egl::Display *dpyPacked); 194 195 // EGL_ANGLE_vulkan_image 196 ScopedContextMutexLock GetContextLock_ExportVkImageANGLE(Thread *thread, egl::Display *dpyPacked); 197 198 // EGL_ANGLE_wait_until_work_scheduled 199 ScopedContextMutexLock GetContextLock_WaitUntilWorkScheduledANGLE(Thread *thread, 200 egl::Display *dpyPacked); 201 202 // EGL_CHROMIUM_sync_control 203 ScopedContextMutexLock GetContextLock_GetSyncValuesCHROMIUM(Thread *thread, 204 egl::Display *dpyPacked); 205 206 // EGL_EXT_device_query 207 ScopedContextMutexLock GetContextLock_QueryDeviceAttribEXT(Thread *thread, EGLint attribute); 208 ScopedContextMutexLock GetContextLock_QueryDeviceStringEXT(Thread *thread); 209 ScopedContextMutexLock GetContextLock_QueryDisplayAttribEXT(Thread *thread, 210 egl::Display *dpyPacked, 211 EGLint attribute); 212 213 // EGL_EXT_image_dma_buf_import_modifiers 214 ScopedContextMutexLock GetContextLock_QueryDmaBufFormatsEXT(Thread *thread, 215 egl::Display *dpyPacked); 216 ScopedContextMutexLock GetContextLock_QueryDmaBufModifiersEXT(Thread *thread, 217 egl::Display *dpyPacked); 218 219 // EGL_EXT_platform_base 220 ScopedContextMutexLock GetContextLock_CreatePlatformPixmapSurfaceEXT(Thread *thread, 221 egl::Display *dpyPacked); 222 ScopedContextMutexLock GetContextLock_CreatePlatformWindowSurfaceEXT(Thread *thread, 223 egl::Display *dpyPacked); 224 ScopedContextMutexLock GetContextLock_GetPlatformDisplayEXT(Thread *thread); 225 226 // EGL_EXT_surface_compression 227 ScopedContextMutexLock GetContextLock_QuerySupportedCompressionRatesEXT(Thread *thread, 228 egl::Display *dpyPacked); 229 230 // EGL_KHR_debug 231 ScopedContextMutexLock GetContextLock_DebugMessageControlKHR(Thread *thread); 232 ScopedContextMutexLock GetContextLock_LabelObjectKHR(Thread *thread, egl::Display *displayPacked); 233 ScopedContextMutexLock GetContextLock_QueryDebugKHR(Thread *thread, EGLint attribute); 234 235 // EGL_KHR_fence_sync 236 ScopedContextMutexLock GetContextLock_ClientWaitSyncKHR(Thread *thread, 237 egl::Display *dpyPacked, 238 EGLint flags); 239 ScopedContextMutexLock GetContextLock_CreateSyncKHR(Thread *thread, egl::Display *dpyPacked); 240 ScopedContextMutexLock GetContextLock_DestroySyncKHR(Thread *thread, egl::Display *dpyPacked); 241 ScopedContextMutexLock GetContextLock_GetSyncAttribKHR(Thread *thread, 242 egl::Display *dpyPacked, 243 EGLint attribute); 244 245 // EGL_KHR_image 246 ScopedContextMutexLock GetContextLock_CreateImageKHR(Thread *thread, 247 egl::Display *dpyPacked, 248 gl::ContextID ctxPacked); 249 ScopedContextMutexLock GetContextLock_DestroyImageKHR(Thread *thread, egl::Display *dpyPacked); 250 251 // EGL_KHR_lock_surface3 252 ScopedContextMutexLock GetContextLock_LockSurfaceKHR(Thread *thread, egl::Display *dpyPacked); 253 ScopedContextMutexLock GetContextLock_QuerySurface64KHR(Thread *thread, 254 egl::Display *dpyPacked, 255 EGLint attribute); 256 ScopedContextMutexLock GetContextLock_UnlockSurfaceKHR(Thread *thread, egl::Display *dpyPacked); 257 258 // EGL_KHR_partial_update 259 ScopedContextMutexLock GetContextLock_SetDamageRegionKHR(Thread *thread, egl::Display *dpyPacked); 260 261 // EGL_KHR_reusable_sync 262 ScopedContextMutexLock GetContextLock_SignalSyncKHR(Thread *thread, egl::Display *dpyPacked); 263 264 // EGL_KHR_stream 265 ScopedContextMutexLock GetContextLock_CreateStreamKHR(Thread *thread, egl::Display *dpyPacked); 266 ScopedContextMutexLock GetContextLock_DestroyStreamKHR(Thread *thread, egl::Display *dpyPacked); 267 ScopedContextMutexLock GetContextLock_QueryStreamKHR(Thread *thread, 268 egl::Display *dpyPacked, 269 EGLenum attribute); 270 ScopedContextMutexLock GetContextLock_QueryStreamu64KHR(Thread *thread, 271 egl::Display *dpyPacked, 272 EGLenum attribute); 273 ScopedContextMutexLock GetContextLock_StreamAttribKHR(Thread *thread, 274 egl::Display *dpyPacked, 275 EGLenum attribute); 276 277 // EGL_KHR_stream_consumer_gltexture 278 ScopedContextMutexLock GetContextLock_StreamConsumerAcquireKHR(Thread *thread, 279 egl::Display *dpyPacked); 280 ScopedContextMutexLock GetContextLock_StreamConsumerGLTextureExternalKHR(Thread *thread, 281 egl::Display *dpyPacked); 282 ScopedContextMutexLock GetContextLock_StreamConsumerReleaseKHR(Thread *thread, 283 egl::Display *dpyPacked); 284 285 // EGL_KHR_swap_buffers_with_damage 286 ScopedContextMutexLock GetContextLock_SwapBuffersWithDamageKHR(Thread *thread, 287 egl::Display *dpyPacked); 288 289 // EGL_KHR_wait_sync 290 ScopedContextMutexLock GetContextLock_WaitSyncKHR(Thread *thread, 291 egl::Display *dpyPacked, 292 EGLint flags); 293 294 // EGL_NV_post_sub_buffer 295 ScopedContextMutexLock GetContextLock_PostSubBufferNV(Thread *thread, egl::Display *dpyPacked); 296 297 // EGL_NV_stream_consumer_gltexture_yuv 298 ScopedContextMutexLock GetContextLock_StreamConsumerGLTextureExternalAttribsNV( 299 Thread *thread, 300 egl::Display *dpyPacked); 301 } // namespace egl 302 303 #endif // LIBGLESV2_EGL_CONTEXT_LOCK_AUTOGEN_H_ 304