Home | History | Annotate | Download | only in gpu_tonemapper

Lines Matching refs:sync

247     EGLSyncKHR sync = eglCreateSyncKHR(eglGetCurrentDisplay(), EGL_SYNC_NATIVE_FENCE_ANDROID, attribs);
249 if (sync == EGL_NO_SYNC_KHR) {
250 ALOGE("%s - Failed to Create sync from source fd", __FUNCTION__);
252 // the gpu will wait for this sync - not this cpu thread.
253 EGL(eglWaitSyncKHR(eglGetCurrentDisplay(), sync, 0));
254 EGL(eglDestroySyncKHR(eglGetCurrentDisplay(), sync));
265 EGLSyncKHR sync = eglCreateSyncKHR(eglGetCurrentDisplay(), EGL_SYNC_NATIVE_FENCE_ANDROID, NULL);
267 if (sync == EGL_NO_SYNC_KHR) {
268 ALOGE("%s - Failed to Create Native Fence sync", __FUNCTION__);
270 fd = eglDupNativeFenceFDANDROID(eglGetCurrentDisplay(), sync);
272 ALOGE("%s - Failed to dup sync", __FUNCTION__);
274 EGL(eglDestroySyncKHR(eglGetCurrentDisplay(), sync));