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