Lines Matching full:thread
18 #include "libANGLE/Thread.h"
39 Thread *thread = egl::GetCurrentThread(); in EGL_QuerySurfacePointerANGLE() local
47 thread->setError(error, GetDebug(), "eglQuerySurfacePointerANGLE", in EGL_QuerySurfacePointerANGLE()
54 thread->setSuccess(); in EGL_QuerySurfacePointerANGLE()
60 thread->setError(EglBadSurface(), GetDebug(), "eglQuerySurfacePointerANGLE", in EGL_QuerySurfacePointerANGLE()
71 thread->setError(EglBadAttribute(), GetDebug(), "eglQuerySurfacePointerANGLE", in EGL_QuerySurfacePointerANGLE()
79 thread->setError(EglBadAttribute(), GetDebug(), "eglQuerySurfacePointerANGLE", in EGL_QuerySurfacePointerANGLE()
85 thread->setError(EglBadAttribute(), GetDebug(), "eglQuerySurfacePointerANGLE", in EGL_QuerySurfacePointerANGLE()
93 thread->setError(error, GetDebug(), "eglQuerySurfacePointerANGLE", in EGL_QuerySurfacePointerANGLE()
98 thread->setSuccess(); in EGL_QuerySurfacePointerANGLE()
115 Thread *thread = egl::GetCurrentThread(); in EGL_PostSubBufferNV() local
121 thread->setError(EglBadParameter(), GetDebug(), "eglPostSubBufferNV", in EGL_PostSubBufferNV()
129 thread->setError(error, GetDebug(), "eglPostSubBufferNV", in EGL_PostSubBufferNV()
136 thread->setError(EglContextLost(), GetDebug(), "eglPostSubBufferNV", in EGL_PostSubBufferNV()
143 thread->setError(EglBadSurface(), GetDebug(), "eglPostSubBufferNV", in EGL_PostSubBufferNV()
151 thread->setSuccess(); in EGL_PostSubBufferNV()
155 // TODO(jmadill): Validate Surface is bound to the thread. in EGL_PostSubBufferNV()
156 error = eglSurface->postSubBuffer(thread->getContext(), x, y, width, height); in EGL_PostSubBufferNV()
159 thread->setError(error, GetDebug(), "eglPostSubBufferNV", in EGL_PostSubBufferNV()
164 thread->setSuccess(); in EGL_PostSubBufferNV()
178 Thread *thread = egl::GetCurrentThread(); in EGL_GetPlatformDisplayEXT() local
181 thread->setError(err, GetDebug(), "eglGetPlatformDisplayEXT", GetThreadIfValid(thread)); in EGL_GetPlatformDisplayEXT()
216 Thread *thread = egl::GetCurrentThread(); in EGL_CreatePlatformWindowSurfaceEXT() local
223 thread, in EGL_CreatePlatformWindowSurfaceEXT()
227 thread->setError(EglBadDisplay() << "CreatePlatformWindowSurfaceEXT unimplemented.", GetDebug(), in EGL_CreatePlatformWindowSurfaceEXT()
243 Thread *thread = egl::GetCurrentThread(); in EGL_CreatePlatformPixmapSurfaceEXT() local
250 thread, in EGL_CreatePlatformPixmapSurfaceEXT()
254 thread->setError(EglBadDisplay() << "CreatePlatformPixmapSurfaceEXT unimplemented.", GetDebug(), in EGL_CreatePlatformPixmapSurfaceEXT()
268 Thread *thread = egl::GetCurrentThread(); in EGL_QueryDeviceAttribEXT() local
275 thread->setError(error, GetDebug(), "eglQueryDeviceAttribEXT", GetDeviceIfValid(dev)); in EGL_QueryDeviceAttribEXT()
284 thread->setError(EglBadAccess() << "Device wasn't created using eglCreateDeviceANGLE, " in EGL_QueryDeviceAttribEXT()
298 thread->setError(EglBadAttribute(), GetDebug(), "eglQueryDeviceAttribEXT", in EGL_QueryDeviceAttribEXT()
307 thread->setError(EglBadAttribute(), GetDebug(), "eglQueryDeviceAttribEXT", in EGL_QueryDeviceAttribEXT()
317 thread->setError(EglBadAttribute(), GetDebug(), "eglQueryDeviceAttribEXT", in EGL_QueryDeviceAttribEXT()
324 thread->setError(EglBadAttribute(), GetDebug(), "eglQueryDeviceAttribEXT", in EGL_QueryDeviceAttribEXT()
331 thread->setError(error, GetDebug(), "eglQueryDeviceAttribEXT", GetDeviceIfValid(dev)); in EGL_QueryDeviceAttribEXT()
334 thread->setSuccess(); in EGL_QueryDeviceAttribEXT()
344 Thread *thread = egl::GetCurrentThread(); in EGL_QueryDeviceStringEXT() local
351 thread->setError(error, GetDebug(), "eglQueryDeviceStringEXT", GetDeviceIfValid(dev)); in EGL_QueryDeviceStringEXT()
362 thread->setError(EglBadDevice(), GetDebug(), "eglQueryDeviceStringEXT", in EGL_QueryDeviceStringEXT()
367 thread->setSuccess(); in EGL_QueryDeviceStringEXT()
380 Thread *thread = egl::GetCurrentThread(); in EGL_QueryDisplayAttribEXT() local
382 ANGLE_EGL_TRY_RETURN(thread, ValidateQueryDisplayAttribEXT(display, attribute), in EGL_QueryDisplayAttribEXT()
386 thread->setSuccess(); in EGL_QueryDisplayAttribEXT()
401 Thread *thread = egl::GetCurrentThread(); in EGL_QueryDisplayAttribANGLE() local
403 ANGLE_EGL_TRY_RETURN(thread, ValidateQueryDisplayAttribANGLE(display, attribute), in EGL_QueryDisplayAttribANGLE()
407 thread->setSuccess(); in EGL_QueryDisplayAttribANGLE()
424 Thread *thread = egl::GetCurrentThread(); in EGL_CreateImageKHR() local
433 thread->setError(error, GetDebug(), "eglCreateImageKHR", GetDisplayIfValid(display)); in EGL_CreateImageKHR()
441 thread->setError(error, GetDebug(), "eglCreateImageKHR", GetDisplayIfValid(display)); in EGL_CreateImageKHR()
445 thread->setSuccess(); in EGL_CreateImageKHR()
454 Thread *thread = egl::GetCurrentThread(); in EGL_DestroyImageKHR() local
462 thread->setError(error, GetDebug(), "eglDestroyImageKHR", GetImageIfValid(display, img)); in EGL_DestroyImageKHR()
468 thread->setSuccess(); in EGL_DestroyImageKHR()
481 Thread *thread = egl::GetCurrentThread(); in EGL_CreateDeviceANGLE() local
486 thread->setError(error, GetDebug(), "eglCreateDeviceANGLE", GetThreadIfValid(thread)); in EGL_CreateDeviceANGLE()
495 thread->setError(error, GetDebug(), "eglCreateDeviceANGLE", GetThreadIfValid(thread)); in EGL_CreateDeviceANGLE()
499 thread->setSuccess(); in EGL_CreateDeviceANGLE()
507 Thread *thread = egl::GetCurrentThread(); in EGL_ReleaseDeviceANGLE() local
514 thread->setError(error, GetDebug(), "eglReleaseDeviceANGLE", GetDeviceIfValid(dev)); in EGL_ReleaseDeviceANGLE()
520 thread->setSuccess(); in EGL_ReleaseDeviceANGLE()
530 Thread *thread = egl::GetCurrentThread(); in EGL_CreateStreamKHR() local
538 thread->setError(error, GetDebug(), "eglCreateStreamKHR", GetDisplayIfValid(display)); in EGL_CreateStreamKHR()
546 thread->setError(error, GetDebug(), "eglCreateStreamKHR", GetDisplayIfValid(display)); in EGL_CreateStreamKHR()
550 thread->setSuccess(); in EGL_CreateStreamKHR()
559 Thread *thread = egl::GetCurrentThread(); in EGL_DestroyStreamKHR() local
567 thread->setError(error, GetDebug(), "eglDestroyStreamKHR", in EGL_DestroyStreamKHR()
574 thread->setSuccess(); in EGL_DestroyStreamKHR()
588 Thread *thread = egl::GetCurrentThread(); in EGL_StreamAttribKHR() local
596 thread->setError(error, GetDebug(), "eglStreamAttribKHR", in EGL_StreamAttribKHR()
613 thread->setSuccess(); in EGL_StreamAttribKHR()
627 Thread *thread = egl::GetCurrentThread(); in EGL_QueryStreamKHR() local
635 thread->setError(error, GetDebug(), "eglQueryStreamKHR", in EGL_QueryStreamKHR()
655 thread->setSuccess(); in EGL_QueryStreamKHR()
669 Thread *thread = egl::GetCurrentThread(); in EGL_QueryStreamu64KHR() local
677 thread->setError(error, GetDebug(), "eglQueryStreamu64KHR", in EGL_QueryStreamu64KHR()
694 thread->setSuccess(); in EGL_QueryStreamu64KHR()
703 Thread *thread = egl::GetCurrentThread(); in EGL_StreamConsumerGLTextureExternalKHR() local
712 thread->setError(error, GetDebug(), "eglStreamConsumerGLTextureExternalKHR", in EGL_StreamConsumerGLTextureExternalKHR()
720 thread->setError(error, GetDebug(), "eglStreamConsumerGLTextureExternalKHR", in EGL_StreamConsumerGLTextureExternalKHR()
725 thread->setSuccess(); in EGL_StreamConsumerGLTextureExternalKHR()
734 Thread *thread = egl::GetCurrentThread(); in EGL_StreamConsumerAcquireKHR() local
743 thread->setError(error, GetDebug(), "eglStreamConsumerAcquireKHR", in EGL_StreamConsumerAcquireKHR()
751 thread->setError(error, GetDebug(), "eglStreamConsumerAcquireKHR", in EGL_StreamConsumerAcquireKHR()
756 thread->setSuccess(); in EGL_StreamConsumerAcquireKHR()
765 Thread *thread = egl::GetCurrentThread(); in EGL_StreamConsumerReleaseKHR() local
774 thread->setError(error, GetDebug(), "eglSStreamConsumerReleaseKHR", in EGL_StreamConsumerReleaseKHR()
782 thread->setError(error, GetDebug(), "eglStreamConsumerReleaseKHR", in EGL_StreamConsumerReleaseKHR()
787 thread->setSuccess(); in EGL_StreamConsumerReleaseKHR()
799 Thread *thread = egl::GetCurrentThread(); in EGL_StreamConsumerGLTextureExternalAttribsNV() local
810 thread->setError(error, GetDebug(), "eglStreamConsumerGLTextureExternalAttribsNV", in EGL_StreamConsumerGLTextureExternalAttribsNV()
818 thread->setError(error, GetDebug(), "eglStreamConsumerGLTextureExternalAttribsNV", in EGL_StreamConsumerGLTextureExternalAttribsNV()
823 thread->setSuccess(); in EGL_StreamConsumerGLTextureExternalAttribsNV()
835 Thread *thread = egl::GetCurrentThread(); in EGL_CreateStreamProducerD3DTextureANGLE() local
844 thread->setError(error, GetDebug(), "eglCreateStreamProducerD3DTextureANGLE", in EGL_CreateStreamProducerD3DTextureANGLE()
852 thread->setError(error, GetDebug(), "eglCreateStreamProducerD3DTextureANGLE", in EGL_CreateStreamProducerD3DTextureANGLE()
857 thread->setSuccess(); in EGL_CreateStreamProducerD3DTextureANGLE()
872 Thread *thread = egl::GetCurrentThread(); in EGL_StreamPostD3DTextureANGLE() local
881 thread->setError(error, GetDebug(), "eglStreamPostD3DTextureANGLE", in EGL_StreamPostD3DTextureANGLE()
889 thread->setError(error, GetDebug(), "eglStreamPostD3DTextureANGLE", in EGL_StreamPostD3DTextureANGLE()
894 thread->setSuccess(); in EGL_StreamPostD3DTextureANGLE()
908 Thread *thread = egl::GetCurrentThread(); in EGL_CreateSyncKHR() local
912 gl::Context *currentContext = thread->getContext(); in EGL_CreateSyncKHR()
916 thread, ValidateCreateSyncKHR(display, type, attributes, currentDisplay, currentContext), in EGL_CreateSyncKHR()
920 ANGLE_EGL_TRY_RETURN(thread, display->createSync(currentContext, type, attributes, &syncObject), in EGL_CreateSyncKHR()
923 thread->setSuccess(); in EGL_CreateSyncKHR()
933 Thread *thread = egl::GetCurrentThread(); in EGL_DestroySyncKHR() local
937 ANGLE_EGL_TRY_RETURN(thread, ValidateDestroySync(display, syncObject), "eglDestroySync", in EGL_DestroySyncKHR()
942 thread->setSuccess(); in EGL_DestroySyncKHR()
957 Thread *thread = egl::GetCurrentThread(); in EGL_ClientWaitSyncKHR() local
961 ANGLE_EGL_TRY_RETURN(thread, ValidateClientWaitSync(display, syncObject, flags, timeout), in EGL_ClientWaitSyncKHR()
964 gl::Context *currentContext = thread->getContext(); in EGL_ClientWaitSyncKHR()
967 thread, syncObject->clientWait(display, currentContext, flags, timeout, &syncStatus), in EGL_ClientWaitSyncKHR()
970 thread->setSuccess(); in EGL_ClientWaitSyncKHR()
985 Thread *thread = egl::GetCurrentThread(); in EGL_GetSyncAttribKHR() local
989 ANGLE_EGL_TRY_RETURN(thread, ValidateGetSyncAttribKHR(display, syncObject, attribute, value), in EGL_GetSyncAttribKHR()
992 ANGLE_EGL_TRY_RETURN(thread, GetSyncAttrib(display, syncObject, attribute, value), in EGL_GetSyncAttribKHR()
995 thread->setSuccess(); in EGL_GetSyncAttribKHR()
1007 Thread *thread = egl::GetCurrentThread(); in EGL_WaitSyncKHR() local
1009 gl::Context *context = thread->getContext(); in EGL_WaitSyncKHR()
1012 ANGLE_EGL_TRY_RETURN(thread, ValidateWaitSync(display, context, syncObject, flags), in EGL_WaitSyncKHR()
1015 gl::Context *currentContext = thread->getContext(); in EGL_WaitSyncKHR()
1016 ANGLE_EGL_TRY_RETURN(thread, syncObject->serverWait(display, currentContext, flags), in EGL_WaitSyncKHR()
1019 thread->setSuccess(); in EGL_WaitSyncKHR()
1034 Thread *thread = egl::GetCurrentThread(); in EGL_GetMscRateANGLE() local
1042 thread->setError(error, GetDebug(), "eglGetMscRateANGLE", in EGL_GetMscRateANGLE()
1050 thread->setError(error, GetDebug(), "eglGetMscRateANGLE", in EGL_GetMscRateANGLE()
1055 thread->setSuccess(); in EGL_GetMscRateANGLE()
1071 Thread *thread = egl::GetCurrentThread(); in EGL_GetSyncValuesCHROMIUM() local
1079 thread->setError(error, GetDebug(), "eglGetSyncValuesCHROMIUM", in EGL_GetSyncValuesCHROMIUM()
1087 thread->setError(error, GetDebug(), "eglGetSyncValuesCHROMIUM", in EGL_GetSyncValuesCHROMIUM()
1092 thread->setSuccess(); in EGL_GetSyncValuesCHROMIUM()
1107 Thread *thread = egl::GetCurrentThread(); in EGL_SwapBuffersWithDamageKHR() local
1115 thread->setError(error, GetDebug(), "eglSwapBuffersWithDamageEXT", in EGL_SwapBuffersWithDamageKHR()
1120 error = eglSurface->swapWithDamage(thread->getContext(), rects, n_rects); in EGL_SwapBuffersWithDamageKHR()
1123 thread->setError(error, GetDebug(), "eglSwapBuffersWithDamageEXT", in EGL_SwapBuffersWithDamageKHR()
1128 thread->setSuccess(); in EGL_SwapBuffersWithDamageKHR()
1140 Thread *thread = egl::GetCurrentThread(); in EGL_PresentationTimeANDROID() local
1145 ANGLE_EGL_TRY_RETURN(thread, ValidatePresentationTimeANDROID(display, eglSurface, time), in EGL_PresentationTimeANDROID()
1148 ANGLE_EGL_TRY_RETURN(thread, eglSurface->setPresentationTime(time), in EGL_PresentationTimeANDROID()
1163 Thread *thread = egl::GetCurrentThread(); in EGL_SetBlobCacheFuncsANDROID() local
1167 ANGLE_EGL_TRY(thread, ValidateSetBlobCacheANDROID(display, set, get), in EGL_SetBlobCacheFuncsANDROID()
1170 thread->setSuccess(); in EGL_SetBlobCacheFuncsANDROID()
1180 Thread *thread = egl::GetCurrentThread(); in EGL_ProgramCacheGetAttribANGLE() local
1182 ANGLE_EGL_TRY_RETURN(thread, ValidateProgramCacheGetAttribANGLE(display, attrib), in EGL_ProgramCacheGetAttribANGLE()
1185 thread->setSuccess(); in EGL_ProgramCacheGetAttribANGLE()
1204 Thread *thread = egl::GetCurrentThread(); in EGL_ProgramCacheQueryANGLE() local
1206 ANGLE_EGL_TRY(thread, in EGL_ProgramCacheQueryANGLE()
1210 ANGLE_EGL_TRY(thread, display->programCacheQuery(index, key, keysize, binary, binarysize), in EGL_ProgramCacheQueryANGLE()
1213 thread->setSuccess(); in EGL_ProgramCacheQueryANGLE()
1229 Thread *thread = egl::GetCurrentThread(); in EGL_ProgramCachePopulateANGLE() local
1231 ANGLE_EGL_TRY(thread, in EGL_ProgramCachePopulateANGLE()
1235 ANGLE_EGL_TRY(thread, display->programCachePopulate(key, keysize, binary, binarysize), in EGL_ProgramCachePopulateANGLE()
1238 thread->setSuccess(); in EGL_ProgramCachePopulateANGLE()
1248 Thread *thread = egl::GetCurrentThread(); in EGL_ProgramCacheResizeANGLE() local
1250 ANGLE_EGL_TRY_RETURN(thread, ValidateProgramCacheResizeANGLE(display, limit, mode), in EGL_ProgramCacheResizeANGLE()
1253 thread->setSuccess(); in EGL_ProgramCacheResizeANGLE()
1265 Thread *thread = egl::GetCurrentThread(); in EGL_DebugMessageControlKHR() local
1272 thread->setError(error, GetDebug(), "eglDebugMessageControlKHR", nullptr); in EGL_DebugMessageControlKHR()
1279 thread->setSuccess(); in EGL_DebugMessageControlKHR()
1289 Thread *thread = egl::GetCurrentThread(); in EGL_QueryDebugKHR() local
1294 thread->setError(error, GetDebug(), "eglQueryDebugKHR", nullptr); in EGL_QueryDebugKHR()
1316 thread->setSuccess(); in EGL_QueryDebugKHR()
1333 Thread *thread = egl::GetCurrentThread(); in EGL_LabelObjectKHR() local
1336 Error error = ValidateLabelObjectKHR(thread, display, objectTypePacked, object, label); in EGL_LabelObjectKHR()
1339 thread->setError(error, GetDebug(), "eglLabelObjectKHR", in EGL_LabelObjectKHR()
1340 GetLabeledObjectIfValid(thread, display, objectTypePacked, object)); in EGL_LabelObjectKHR()
1345 GetLabeledObjectIfValid(thread, display, objectTypePacked, object); in EGL_LabelObjectKHR()
1349 thread->setSuccess(); in EGL_LabelObjectKHR()
1364 Thread *thread = egl::GetCurrentThread(); in EGL_GetCompositorTimingSupportedANDROID() local
1369 thread, ValidateGetCompositorTimingSupportedANDROID(display, eglSurface, nameInternal), in EGL_GetCompositorTimingSupportedANDROID()
1372 thread->setSuccess(); in EGL_GetCompositorTimingSupportedANDROID()
1391 Thread *thread = egl::GetCurrentThread(); in EGL_GetCompositorTimingANDROID() local
1394 thread, in EGL_GetCompositorTimingANDROID()
1397 ANGLE_EGL_TRY_RETURN(thread, eglSurface->getCompositorTiming(numTimestamps, names, values), in EGL_GetCompositorTimingANDROID()
1401 thread->setSuccess(); in EGL_GetCompositorTimingANDROID()
1416 Thread *thread = egl::GetCurrentThread(); in EGL_GetNextFrameIdANDROID() local
1418 ANGLE_EGL_TRY_RETURN(thread, ValidateGetNextFrameIdANDROID(display, eglSurface, frameId), in EGL_GetNextFrameIdANDROID()
1421 ANGLE_EGL_TRY_RETURN(thread, eglSurface->getNextFrameId(frameId), "eglGetNextFrameIdANDROID", in EGL_GetNextFrameIdANDROID()
1424 thread->setSuccess(); in EGL_GetNextFrameIdANDROID()
1439 Thread *thread = egl::GetCurrentThread(); in EGL_GetFrameTimestampSupportedANDROID() local
1444 thread, ValidateGetFrameTimestampSupportedANDROID(display, eglSurface, timestampInternal), in EGL_GetFrameTimestampSupportedANDROID()
1447 thread->setSuccess(); in EGL_GetFrameTimestampSupportedANDROID()
1468 Thread *thread = egl::GetCurrentThread(); in EGL_GetFrameTimestampsANDROID() local
1470 ANGLE_EGL_TRY_RETURN(thread, in EGL_GetFrameTimestampsANDROID()
1476 thread, eglSurface->getFrameTimestamps(frameId, numTimestamps, timestamps, values), in EGL_GetFrameTimestampsANDROID()
1479 thread->setSuccess(); in EGL_GetFrameTimestampsANDROID()
1493 Thread *thread = egl::GetCurrentThread(); in EGL_QueryStringiANGLE() local
1495 ANGLE_EGL_TRY_RETURN(thread, ValidateQueryStringiANGLE(display, name, index), in EGL_QueryStringiANGLE()
1498 thread->setSuccess(); in EGL_QueryStringiANGLE()
1507 Thread *thread = egl::GetCurrentThread(); in EGL_GetNativeClientBufferANDROID() local
1509 ANGLE_EGL_TRY_RETURN(thread, ValidateGetNativeClientBufferANDROID(buffer), in EGL_GetNativeClientBufferANDROID()
1512 thread->setSuccess(); in EGL_GetNativeClientBufferANDROID()
1524 Thread *thread = egl::GetCurrentThread(); in EGL_DupNativeFenceFDANDROID() local
1526 ANGLE_EGL_TRY_RETURN(thread, ValidateDupNativeFenceFDANDROID(display, syncObject), in EGL_DupNativeFenceFDANDROID()
1531 ANGLE_EGL_TRY_RETURN(thread, syncObject->dupNativeFenceFD(display, &result), in EGL_DupNativeFenceFDANDROID()
1535 thread->setSuccess(); in EGL_DupNativeFenceFDANDROID()
1550 Thread *thread = egl::GetCurrentThread(); in EGL_SwapBuffersWithFrameTokenANGLE() local
1553 thread, ValidateSwapBuffersWithFrameTokenANGLE(display, eglSurface, frametoken), in EGL_SwapBuffersWithFrameTokenANGLE()
1556 ANGLE_EGL_TRY_RETURN(thread, eglSurface->swapWithFrameToken(thread->getContext(), frametoken), in EGL_SwapBuffersWithFrameTokenANGLE()
1560 thread->setSuccess(); in EGL_SwapBuffersWithFrameTokenANGLE()