Lines Matching refs:fence
465 EGLSyncKHR fence = mEGLSlots[mCurrentTexture].mFence;
466 if (fence != EGL_NO_SYNC_KHR) {
467 // There is already a fence for the current slot. We need to wait
468 // on that before replacing it with another fence to ensure that all
471 EGLint result = eglClientWaitSyncKHR(dpy, fence, 0, 1000000000);
474 "fence: %#x", eglGetError());
478 "fence");
481 eglDestroySyncKHR(dpy, fence);
484 // Create a fence for the outstanding accesses in the current OpenGL ES
486 fence = eglCreateSyncKHR(dpy, EGL_SYNC_FENCE_KHR, NULL);
487 if (fence == EGL_NO_SYNC_KHR) {
488 ST_LOGE("syncForReleaseLocked: error creating fence: %#x",
493 mEGLSlots[mCurrentTexture].mFence = fence;