Lines Matching refs:fence
464 fence(); in swapBuffers()
488 void EglManager::fence() { in fence() function in android::uirenderer::renderthread::EglManager
489 EGLSyncKHR fence = eglCreateSyncKHR(mEglDisplay, EGL_SYNC_FENCE_KHR, NULL); in fence() local
490 eglClientWaitSyncKHR(mEglDisplay, fence, EGL_SYNC_FLUSH_COMMANDS_BIT_KHR, EGL_FOREVER_KHR); in fence()
491 eglDestroySyncKHR(mEglDisplay, fence); in fence()
515 static status_t waitForeverOnFence(int fence, const char* logname) { in waitForeverOnFence() argument
517 if (fence == -1) { in waitForeverOnFence()
521 int err = sync_wait(fence, warningTimeout); in waitForeverOnFence()
523 ALOGE("%s: fence %d didn't signal in %d ms", logname, fence, warningTimeout); in waitForeverOnFence()
524 err = sync_wait(fence, -1); in waitForeverOnFence()
529 status_t EglManager::fenceWait(int fence) { in fenceWait() argument
538 int fenceFd = ::dup(fence); in fenceWait()
563 status_t err = waitForeverOnFence(fence, "EglManager::fenceWait"); in fenceWait()