Lines Matching full:thread
15 #include "libANGLE/Thread.h"
25 EGLint ClientWaitSyncKHR(Thread *thread, in ClientWaitSyncKHR() argument
31 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglClientWaitSyncKHR", in ClientWaitSyncKHR()
33 gl::Context *currentContext = thread->getContext(); in ClientWaitSyncKHR()
36 ANGLE_EGL_TRY_RETURN(thread, in ClientWaitSyncKHR()
43 auto handleErrorStatus = [thread, display, syncID](void *result) { in ClientWaitSyncKHR()
48 thread->setError(egl::Error(EGL_BAD_ALLOC), "eglClientWaitSyncKHR", in ClientWaitSyncKHR()
53 thread->setSuccess(); in ClientWaitSyncKHR()
60 thread->setSuccess(); in ClientWaitSyncKHR()
65 EGLImageKHR CreateImageKHR(Thread *thread, in CreateImageKHR() argument
74 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglCreateImageKHR", in CreateImageKHR()
78 ANGLE_EGL_TRY_RETURN(thread, display->createImage(context, target, buffer, attributes, &image), in CreateImageKHR()
81 thread->setSuccess(); in CreateImageKHR()
85 EGLClientBuffer CreateNativeClientBufferANDROID(Thread *thread, const AttributeMap &attribMap) in CreateNativeClientBufferANDROID() argument
88 ANGLE_EGL_TRY_RETURN(thread, in CreateNativeClientBufferANDROID()
92 thread->setSuccess(); in CreateNativeClientBufferANDROID()
96 EGLSurface CreatePlatformPixmapSurfaceEXT(Thread *thread, in CreatePlatformPixmapSurfaceEXT() argument
102 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in CreatePlatformPixmapSurfaceEXT()
105 thread->setError(EGL_BAD_DISPLAY, "eglCreatePlatformPixmapSurfaceEXT", in CreatePlatformPixmapSurfaceEXT()
110 EGLSurface CreatePlatformWindowSurfaceEXT(Thread *thread, in CreatePlatformWindowSurfaceEXT() argument
116 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in CreatePlatformWindowSurfaceEXT()
131 thread, display->createWindowSurface(configPacked, nativeWindow, attributes, &surface), in CreatePlatformWindowSurfaceEXT()
137 EGLStreamKHR CreateStreamKHR(Thread *thread, Display *display, const AttributeMap &attributes) in CreateStreamKHR() argument
139 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglCreateStreamKHR", in CreateStreamKHR()
142 ANGLE_EGL_TRY_RETURN(thread, display->createStream(attributes, &stream), "eglCreateStreamKHR", in CreateStreamKHR()
145 thread->setSuccess(); in CreateStreamKHR()
149 EGLSyncKHR CreateSyncKHR(Thread *thread, in CreateSyncKHR() argument
154 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglCreateSyncKHR", in CreateSyncKHR()
157 ANGLE_EGL_TRY_RETURN(thread, in CreateSyncKHR()
158 display->createSync(thread->getContext(), type, attributes, &syncObject), in CreateSyncKHR()
161 thread->setSuccess(); in CreateSyncKHR()
165 EGLint DebugMessageControlKHR(Thread *thread, in DebugMessageControlKHR() argument
172 thread->setSuccess(); in DebugMessageControlKHR()
176 EGLBoolean DestroyImageKHR(Thread *thread, Display *display, egl::ImageID imageID) in DestroyImageKHR() argument
180 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglDestroyImageKHR", in DestroyImageKHR()
184 thread->setSuccess(); in DestroyImageKHR()
188 EGLBoolean DestroyStreamKHR(Thread *thread, Display *display, Stream *streamObject) in DestroyStreamKHR() argument
190 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglDestroyStreamKHR", in DestroyStreamKHR()
194 thread->setSuccess(); in DestroyStreamKHR()
198 EGLBoolean DestroySyncKHR(Thread *thread, Display *display, SyncID syncID) in DestroySyncKHR() argument
201 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglDestroySync", in DestroySyncKHR()
205 thread->setSuccess(); in DestroySyncKHR()
209 EGLint DupNativeFenceFDANDROID(Thread *thread, Display *display, SyncID syncID) in DupNativeFenceFDANDROID() argument
211 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in DupNativeFenceFDANDROID()
216 ANGLE_EGL_TRY_RETURN(thread, syncObject->dupNativeFenceFD(display, &result), in DupNativeFenceFDANDROID()
220 thread->setSuccess(); in DupNativeFenceFDANDROID()
224 EGLClientBuffer GetNativeClientBufferANDROID(Thread *thread, const struct AHardwareBuffer *buffer) in GetNativeClientBufferANDROID() argument
226 thread->setSuccess(); in GetNativeClientBufferANDROID()
230 EGLDisplay GetPlatformDisplayEXT(Thread *thread, in GetPlatformDisplayEXT() argument
258 EGLBoolean GetSyncAttribKHR(Thread *thread, in GetSyncAttribKHR() argument
264 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglGetSyncAttrib", in GetSyncAttribKHR()
266 ANGLE_EGL_TRY_RETURN(thread, GetSyncAttrib(display, syncObject, attribute, value), in GetSyncAttribKHR()
269 thread->setSuccess(); in GetSyncAttribKHR()
273 EGLint LabelObjectKHR(Thread *thread, in LabelObjectKHR() argument
280 GetLabeledObjectIfValid(thread, display, objectTypePacked, object); in LabelObjectKHR()
284 thread->setSuccess(); in LabelObjectKHR()
288 EGLBoolean PostSubBufferNV(Thread *thread, in PostSubBufferNV() argument
298 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglPostSubBufferNV", in PostSubBufferNV()
300 Error error = eglSurface->postSubBuffer(thread->getContext(), x, y, width, height); in PostSubBufferNV()
303 thread->setError(error, "eglPostSubBufferNV", GetSurfaceIfValid(display, surfaceID)); in PostSubBufferNV()
307 thread->setSuccess(); in PostSubBufferNV()
311 EGLBoolean PresentationTimeANDROID(Thread *thread, in PresentationTimeANDROID() argument
318 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in PresentationTimeANDROID()
321 ANGLE_EGL_TRY_RETURN(thread, eglSurface->setPresentationTime(time), in PresentationTimeANDROID()
328 EGLBoolean GetCompositorTimingSupportedANDROID(Thread *thread, in GetCompositorTimingSupportedANDROID() argument
335 thread->setSuccess(); in GetCompositorTimingSupportedANDROID()
339 EGLBoolean GetCompositorTimingANDROID(Thread *thread, in GetCompositorTimingANDROID() argument
348 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in GetCompositorTimingANDROID()
351 ANGLE_EGL_TRY_RETURN(thread, eglSurface->getCompositorTiming(numTimestamps, names, values), in GetCompositorTimingANDROID()
355 thread->setSuccess(); in GetCompositorTimingANDROID()
359 EGLBoolean GetNextFrameIdANDROID(Thread *thread, in GetNextFrameIdANDROID() argument
366 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in GetNextFrameIdANDROID()
369 ANGLE_EGL_TRY_RETURN(thread, eglSurface->getNextFrameId(frameId), "eglGetNextFrameIdANDROID", in GetNextFrameIdANDROID()
372 thread->setSuccess(); in GetNextFrameIdANDROID()
376 EGLBoolean GetFrameTimestampSupportedANDROID(Thread *thread, in GetFrameTimestampSupportedANDROID() argument
383 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in GetFrameTimestampSupportedANDROID()
386 thread->setSuccess(); in GetFrameTimestampSupportedANDROID()
390 EGLBoolean GetFrameTimestampsANDROID(Thread *thread, in GetFrameTimestampsANDROID() argument
400 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in GetFrameTimestampsANDROID()
404 thread, eglSurface->getFrameTimestamps(frameId, numTimestamps, timestamps, values), in GetFrameTimestampsANDROID()
407 thread->setSuccess(); in GetFrameTimestampsANDROID()
411 EGLBoolean QueryDebugKHR(Thread *thread, EGLint attribute, EGLAttrib *value) in QueryDebugKHR() argument
431 thread->setSuccess(); in QueryDebugKHR()
435 EGLBoolean QueryDeviceAttribEXT(Thread *thread, Device *dev, EGLint attribute, EGLAttrib *value) in QueryDeviceAttribEXT() argument
437 ANGLE_EGL_TRY_RETURN(thread, dev->getAttribute(attribute, value), "eglQueryDeviceAttribEXT", in QueryDeviceAttribEXT()
440 thread->setSuccess(); in QueryDeviceAttribEXT()
444 const char *QueryDeviceStringEXT(Thread *thread, Device *dev, EGLint name) in QueryDeviceStringEXT() argument
446 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, dev->getOwningDisplay()->prepareForCall(), in QueryDeviceStringEXT()
460 thread->setError(EglBadDevice(), "eglQueryDeviceStringEXT", GetDeviceIfValid(dev)); in QueryDeviceStringEXT()
464 thread->setSuccess(); in QueryDeviceStringEXT()
468 EGLBoolean QueryDisplayAttribEXT(Thread *thread, in QueryDisplayAttribEXT() argument
473 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in QueryDisplayAttribEXT()
477 thread->setSuccess(); in QueryDisplayAttribEXT()
481 EGLBoolean QueryStreamKHR(Thread *thread, in QueryStreamKHR() argument
487 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglQueryStreamKHR", in QueryStreamKHR()
504 thread->setSuccess(); in QueryStreamKHR()
508 EGLBoolean QueryStreamu64KHR(Thread *thread, in QueryStreamu64KHR() argument
514 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglQueryStreamu64KHR", in QueryStreamu64KHR()
528 thread->setSuccess(); in QueryStreamu64KHR()
532 EGLBoolean QuerySurfacePointerANGLE(Thread *thread, in QuerySurfacePointerANGLE() argument
540 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in QuerySurfacePointerANGLE()
546 thread->setError(error, "eglQuerySurfacePointerANGLE", in QuerySurfacePointerANGLE()
551 thread->setSuccess(); in QuerySurfacePointerANGLE()
555 void SetBlobCacheFuncsANDROID(Thread *thread, in SetBlobCacheFuncsANDROID() argument
560 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), "eglSetBlobCacheFuncsANDROID", in SetBlobCacheFuncsANDROID()
562 thread->setSuccess(); in SetBlobCacheFuncsANDROID()
566 EGLBoolean SignalSyncKHR(Thread *thread, Display *display, SyncID syncID, EGLenum mode) in SignalSyncKHR() argument
568 gl::Context *currentContext = thread->getContext(); in SignalSyncKHR()
570 ANGLE_EGL_TRY_RETURN(thread, syncObject->signal(display, currentContext, mode), in SignalSyncKHR()
573 thread->setSuccess(); in SignalSyncKHR()
577 EGLBoolean StreamAttribKHR(Thread *thread, in StreamAttribKHR() argument
583 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglStreamAttribKHR", in StreamAttribKHR()
597 thread->setSuccess(); in StreamAttribKHR()
601 EGLBoolean StreamConsumerAcquireKHR(Thread *thread, Display *display, Stream *streamObject) in StreamConsumerAcquireKHR() argument
603 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in StreamConsumerAcquireKHR()
606 ANGLE_EGL_TRY_RETURN(thread, streamObject->consumerAcquire(thread->getContext()), in StreamConsumerAcquireKHR()
609 thread->setSuccess(); in StreamConsumerAcquireKHR()
613 EGLBoolean StreamConsumerGLTextureExternalKHR(Thread *thread, in StreamConsumerGLTextureExternalKHR() argument
617 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in StreamConsumerGLTextureExternalKHR()
621 thread, streamObject->createConsumerGLTextureExternal(AttributeMap(), thread->getContext()), in StreamConsumerGLTextureExternalKHR()
624 thread->setSuccess(); in StreamConsumerGLTextureExternalKHR()
628 EGLBoolean StreamConsumerGLTextureExternalAttribsNV(Thread *thread, in StreamConsumerGLTextureExternalAttribsNV() argument
633 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in StreamConsumerGLTextureExternalAttribsNV()
638 ANGLE_EGL_TRY_RETURN(thread, streamObject->createConsumerGLTextureExternal(attributes, context), in StreamConsumerGLTextureExternalAttribsNV()
641 thread->setSuccess(); in StreamConsumerGLTextureExternalAttribsNV()
645 EGLBoolean StreamConsumerReleaseKHR(Thread *thread, Display *display, Stream *streamObject) in StreamConsumerReleaseKHR() argument
647 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in StreamConsumerReleaseKHR()
652 ANGLE_EGL_TRY_RETURN(thread, streamObject->consumerRelease(context), in StreamConsumerReleaseKHR()
655 thread->setSuccess(); in StreamConsumerReleaseKHR()
659 EGLBoolean SwapBuffersWithDamageKHR(Thread *thread, in SwapBuffersWithDamageKHR() argument
667 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in SwapBuffersWithDamageKHR()
670 ANGLE_EGL_TRY_RETURN(thread, eglSurface->swapWithDamage(thread->getContext(), rects, n_rects), in SwapBuffersWithDamageKHR()
674 thread->setSuccess(); in SwapBuffersWithDamageKHR()
678 EGLBoolean PrepareSwapBuffersANGLE(Thread *thread, Display *display, SurfaceID surfaceID) in PrepareSwapBuffersANGLE() argument
682 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in PrepareSwapBuffersANGLE()
685 ANGLE_EGL_TRY_RETURN(thread, eglSurface->prepareSwap(thread->getContext()), in PrepareSwapBuffersANGLE()
688 thread->setSuccess(); in PrepareSwapBuffersANGLE()
692 EGLint WaitSyncKHR(Thread *thread, Display *display, SyncID syncID, EGLint flags) in WaitSyncKHR() argument
694 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglWaitSync", in WaitSyncKHR()
696 gl::Context *currentContext = thread->getContext(); in WaitSyncKHR()
698 ANGLE_EGL_TRY_RETURN(thread, syncObject->serverWait(display, currentContext, flags), in WaitSyncKHR()
701 thread->setSuccess(); in WaitSyncKHR()
705 EGLDeviceEXT CreateDeviceANGLE(Thread *thread, in CreateDeviceANGLE() argument
711 ANGLE_EGL_TRY_RETURN(thread, Device::CreateDevice(device_type, native_device, &device), in CreateDeviceANGLE()
712 "eglCreateDeviceANGLE", GetThreadIfValid(thread), EGL_NO_DEVICE_EXT); in CreateDeviceANGLE()
714 thread->setSuccess(); in CreateDeviceANGLE()
718 EGLBoolean ReleaseDeviceANGLE(Thread *thread, Device *dev) in ReleaseDeviceANGLE() argument
722 thread->setSuccess(); in ReleaseDeviceANGLE()
726 EGLBoolean CreateStreamProducerD3DTextureANGLE(Thread *thread, in CreateStreamProducerD3DTextureANGLE() argument
731 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in CreateStreamProducerD3DTextureANGLE()
734 ANGLE_EGL_TRY_RETURN(thread, streamObject->createProducerD3D11Texture(attributes), in CreateStreamProducerD3DTextureANGLE()
737 thread->setSuccess(); in CreateStreamProducerD3DTextureANGLE()
741 EGLBoolean StreamPostD3DTextureANGLE(Thread *thread, in StreamPostD3DTextureANGLE() argument
747 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in StreamPostD3DTextureANGLE()
750 ANGLE_EGL_TRY_RETURN(thread, streamObject->postD3D11Texture(texture, attributes), in StreamPostD3DTextureANGLE()
753 thread->setSuccess(); in StreamPostD3DTextureANGLE()
757 EGLBoolean GetMscRateANGLE(Thread *thread, in GetMscRateANGLE() argument
765 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglGetMscRateANGLE", in GetMscRateANGLE()
767 ANGLE_EGL_TRY_RETURN(thread, eglSurface->getMscRate(numerator, denominator), in GetMscRateANGLE()
770 thread->setSuccess(); in GetMscRateANGLE()
774 EGLBoolean GetSyncValuesCHROMIUM(Thread *thread, in GetSyncValuesCHROMIUM() argument
783 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in GetSyncValuesCHROMIUM()
786 ANGLE_EGL_TRY_RETURN(thread, eglSurface->getSyncValues(ust, msc, sbc), in GetSyncValuesCHROMIUM()
790 thread->setSuccess(); in GetSyncValuesCHROMIUM()
794 EGLint ProgramCacheGetAttribANGLE(Thread *thread, Display *display, EGLenum attrib) in ProgramCacheGetAttribANGLE() argument
796 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in ProgramCacheGetAttribANGLE()
799 thread->setSuccess(); in ProgramCacheGetAttribANGLE()
803 void ProgramCacheQueryANGLE(Thread *thread, in ProgramCacheQueryANGLE() argument
811 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), "eglProgramCacheQueryANGLE", in ProgramCacheQueryANGLE()
813 ANGLE_EGL_TRY(thread, display->programCacheQuery(index, key, keysize, binary, binarysize), in ProgramCacheQueryANGLE()
816 thread->setSuccess(); in ProgramCacheQueryANGLE()
819 void ProgramCachePopulateANGLE(Thread *thread, in ProgramCachePopulateANGLE() argument
826 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), in ProgramCachePopulateANGLE()
828 ANGLE_EGL_TRY(thread, display->programCachePopulate(key, keysize, binary, binarysize), in ProgramCachePopulateANGLE()
831 thread->setSuccess(); in ProgramCachePopulateANGLE()
834 EGLint ProgramCacheResizeANGLE(Thread *thread, Display *display, EGLint limit, EGLint mode) in ProgramCacheResizeANGLE() argument
836 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in ProgramCacheResizeANGLE()
839 thread->setSuccess(); in ProgramCacheResizeANGLE()
843 const char *QueryStringiANGLE(Thread *thread, Display *display, EGLint name, EGLint index) in QueryStringiANGLE() argument
845 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglQueryStringiANGLE", in QueryStringiANGLE()
847 thread->setSuccess(); in QueryStringiANGLE()
851 EGLBoolean SwapBuffersWithFrameTokenANGLE(Thread *thread, in SwapBuffersWithFrameTokenANGLE() argument
858 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in SwapBuffersWithFrameTokenANGLE()
861 ANGLE_EGL_TRY_RETURN(thread, eglSurface->swapWithFrameToken(thread->getContext(), frametoken), in SwapBuffersWithFrameTokenANGLE()
865 thread->setSuccess(); in SwapBuffersWithFrameTokenANGLE()
869 void ReleaseHighPowerGPUANGLE(Thread *thread, Display *display, gl::ContextID contextID) in ReleaseHighPowerGPUANGLE() argument
872 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), "eglReleaseHighPowerGPUANGLE", in ReleaseHighPowerGPUANGLE()
874 ANGLE_EGL_TRY(thread, context->releaseHighPowerGPU(), "eglReleaseHighPowerGPUANGLE", in ReleaseHighPowerGPUANGLE()
877 thread->setSuccess(); in ReleaseHighPowerGPUANGLE()
880 void ReacquireHighPowerGPUANGLE(Thread *thread, Display *display, gl::ContextID contextID) in ReacquireHighPowerGPUANGLE() argument
883 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), in ReacquireHighPowerGPUANGLE()
885 ANGLE_EGL_TRY(thread, context->reacquireHighPowerGPU(), "eglReacquireHighPowerGPUANGLE", in ReacquireHighPowerGPUANGLE()
888 thread->setSuccess(); in ReacquireHighPowerGPUANGLE()
891 void HandleGPUSwitchANGLE(Thread *thread, Display *display) in HandleGPUSwitchANGLE() argument
893 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), "eglHandleGPUSwitchANGLE", in HandleGPUSwitchANGLE()
895 ANGLE_EGL_TRY(thread, display->handleGPUSwitch(), "eglHandleGPUSwitchANGLE", in HandleGPUSwitchANGLE()
898 thread->setSuccess(); in HandleGPUSwitchANGLE()
901 void ForceGPUSwitchANGLE(Thread *thread, Display *display, EGLint gpuIDHigh, EGLint gpuIDLow) in ForceGPUSwitchANGLE() argument
903 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), "eglForceGPUSwitchANGLE", in ForceGPUSwitchANGLE()
905 ANGLE_EGL_TRY(thread, display->forceGPUSwitch(gpuIDHigh, gpuIDLow), "eglForceGPUSwitchANGLE", in ForceGPUSwitchANGLE()
908 thread->setSuccess(); in ForceGPUSwitchANGLE()
911 void WaitUntilWorkScheduledANGLE(Thread *thread, Display *display) in WaitUntilWorkScheduledANGLE() argument
913 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), in WaitUntilWorkScheduledANGLE()
915 ANGLE_EGL_TRY(thread, display->waitUntilWorkScheduled(), "eglWaitUntilWorkScheduledANGLE", in WaitUntilWorkScheduledANGLE()
918 thread->setSuccess(); in WaitUntilWorkScheduledANGLE()
921 EGLBoolean QueryDisplayAttribANGLE(Thread *thread, in QueryDisplayAttribANGLE() argument
926 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in QueryDisplayAttribANGLE()
930 thread->setSuccess(); in QueryDisplayAttribANGLE()
934 EGLBoolean LockSurfaceKHR(Thread *thread, in LockSurfaceKHR() argument
941 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglLockSurfaceKHR", in LockSurfaceKHR()
943 ANGLE_EGL_TRY_RETURN(thread, surface->lockSurfaceKHR(display, attributes), "eglLockSurfaceKHR", in LockSurfaceKHR()
945 thread->setSuccess(); in LockSurfaceKHR()
949 EGLBoolean UnlockSurfaceKHR(Thread *thread, egl::Display *display, SurfaceID surfaceID) in UnlockSurfaceKHR() argument
953 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglUnlockSurfaceKHR", in UnlockSurfaceKHR()
955 ANGLE_EGL_TRY_RETURN(thread, surface->unlockSurfaceKHR(display), "eglQuerySurface64KHR", in UnlockSurfaceKHR()
957 thread->setSuccess(); in UnlockSurfaceKHR()
961 EGLBoolean QuerySurface64KHR(Thread *thread, in QuerySurface64KHR() argument
969 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), "eglQuerySurface64KHR", in QuerySurface64KHR()
972 thread, QuerySurfaceAttrib64KHR(display, thread->getContext(), surface, attribute, value), in QuerySurface64KHR()
974 thread->setSuccess(); in QuerySurface64KHR()
978 EGLBoolean ExportVkImageANGLE(Thread *thread, in ExportVkImageANGLE() argument
986 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in ExportVkImageANGLE()
989 ANGLE_EGL_TRY_RETURN(thread, image->exportVkImage(vk_image, vk_image_create_info), in ExportVkImageANGLE()
992 thread->setSuccess(); in ExportVkImageANGLE()
996 EGLBoolean SetDamageRegionKHR(Thread *thread, in SetDamageRegionKHR() argument
1004 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in SetDamageRegionKHR()
1009 thread->setSuccess(); in SetDamageRegionKHR()
1013 EGLBoolean QueryDmaBufFormatsEXT(Thread *thread, in QueryDmaBufFormatsEXT() argument
1019 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in QueryDmaBufFormatsEXT()
1022 ANGLE_EGL_TRY_RETURN(thread, display->queryDmaBufFormats(max_formats, formats, num_formats), in QueryDmaBufFormatsEXT()
1024 thread->setSuccess(); in QueryDmaBufFormatsEXT()
1028 EGLBoolean QueryDmaBufModifiersEXT(Thread *thread, in QueryDmaBufModifiersEXT() argument
1036 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in QueryDmaBufModifiersEXT()
1039 ANGLE_EGL_TRY_RETURN(thread, in QueryDmaBufModifiersEXT()
1043 thread->setSuccess(); in QueryDmaBufModifiersEXT()
1047 void *CopyMetalSharedEventANGLE(Thread *thread, Display *display, SyncID syncID) in CopyMetalSharedEventANGLE() argument
1049 ANGLE_EGL_TRY_PREPARE_FOR_CALL_RETURN(thread, display->prepareForCall(), in CopyMetalSharedEventANGLE()
1054 ANGLE_EGL_TRY_RETURN(thread, syncObject->copyMetalSharedEventANGLE(display, &result), in CopyMetalSharedEventANGLE()
1057 thread->setSuccess(); in CopyMetalSharedEventANGLE()
1061 void AcquireExternalContextANGLE(Thread *thread, egl::Display *display, SurfaceID drawAndReadPacked) in AcquireExternalContextANGLE() argument
1065 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), in AcquireExternalContextANGLE()
1067 ANGLE_EGL_TRY(thread, thread->getContext()->acquireExternalContext(eglSurface), in AcquireExternalContextANGLE()
1070 thread->setSuccess(); in AcquireExternalContextANGLE()
1073 void ReleaseExternalContextANGLE(Thread *thread, egl::Display *display) in ReleaseExternalContextANGLE() argument
1075 ANGLE_EGL_TRY_PREPARE_FOR_CALL(thread, display->prepareForCall(), in ReleaseExternalContextANGLE()
1077 ANGLE_EGL_TRY(thread, thread->getContext()->releaseExternalContext(), in ReleaseExternalContextANGLE()
1080 thread->setSuccess(); in ReleaseExternalContextANGLE()
1083 void SetValidationEnabledANGLE(Thread *thread, EGLBoolean validationState) in SetValidationEnabledANGLE() argument
1086 thread->setSuccess(); in SetValidationEnabledANGLE()