diff options
| author | 2018-10-19 09:39:04 -0600 | |
|---|---|---|
| committer | 2018-10-19 11:27:58 -0600 | |
| commit | eb606b265b8efc5295216e6c1d204113c100eb05 (patch) | |
| tree | ffee03ae183721a141f02125ba7f79bd91168254 | |
| parent | 5a3a23129dce1396714af584cb1d45900da7bcef (diff) | |
Remove eglSignalSync
eglSignalSync is not part of EGL 1.5.
Bug: 80297325
Test: make
Change-Id: I06dae769ad499c0879793b85db3a304d8e3a2f00
| -rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 7 | ||||
| -rw-r--r-- | opengl/libs/EGL/egl_entries.in | 1 | ||||
| -rw-r--r-- | opengl/libs/EGL/egl_platform_entries.cpp | 25 | ||||
| -rw-r--r-- | opengl/libs/platform_entries.in | 1 |
4 files changed, 3 insertions, 31 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index bff08d0126..29a966d348 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -437,13 +437,6 @@ EGLBoolean eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync) { return cnx->platform.eglDestroySyncKHR(dpy, sync); } -EGLBoolean eglSignalSync(EGLDisplay dpy, EGLSync sync, EGLenum mode) { - clearError(); - - egl_connection_t* const cnx = &gEGLImpl; - return cnx->platform.eglSignalSync(dpy, sync, mode); -} - EGLBoolean eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode) { clearError(); diff --git a/opengl/libs/EGL/egl_entries.in b/opengl/libs/EGL/egl_entries.in index 10c305ea49..2921d512f1 100644 --- a/opengl/libs/EGL/egl_entries.in +++ b/opengl/libs/EGL/egl_entries.in @@ -53,7 +53,6 @@ EGL_ENTRY(EGLSurface, eglCreatePlatformPixmapSurface, EGLDisplay, EGLConfig, voi EGL_ENTRY(EGLSyncKHR, eglCreateSync, EGLDisplay, EGLenum, const EGLAttrib *) EGL_ENTRY(EGLBoolean, eglDestroySync, EGLDisplay, EGLSync) EGL_ENTRY(EGLint, eglClientWaitSync, EGLDisplay, EGLSync, EGLint, EGLTimeKHR) -EGL_ENTRY(EGLBoolean, eglSignalSync, EGLDisplay, EGLSync, EGLenum) EGL_ENTRY(EGLBoolean, eglGetSyncAttrib, EGLDisplay, EGLSync, EGLint, EGLAttrib *) EGL_ENTRY(EGLBoolean, eglWaitSync, EGLDisplay, EGLSync, EGLint) diff --git a/opengl/libs/EGL/egl_platform_entries.cpp b/opengl/libs/EGL/egl_platform_entries.cpp index 94c7fddca5..1daa4d236e 100644 --- a/opengl/libs/EGL/egl_platform_entries.cpp +++ b/opengl/libs/EGL/egl_platform_entries.cpp @@ -1861,36 +1861,18 @@ EGLBoolean eglDestroySyncImpl(EGLDisplay dpy, EGLSyncKHR sync) { return eglDestroySyncTmpl(dpy, sync, cnx->egl.eglDestroySyncKHR); } -EGLBoolean eglSignalSyncTmpl(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode, - PFNEGLSIGNALSYNCKHRPROC eglSignalSyncFunc) { +EGLBoolean eglSignalSyncKHRImpl(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode) { const egl_display_ptr dp = validate_display(dpy); if (!dp) return EGL_FALSE; EGLBoolean result = EGL_FALSE; egl_connection_t* const cnx = &gEGLImpl; - if (cnx->dso && eglSignalSyncFunc) { - result = eglSignalSyncFunc(dp->disp.dpy, sync, mode); + if (cnx->dso && gEGLImpl.egl.eglSignalSyncKHR) { + result = gEGLImpl.egl.eglSignalSyncKHR(dp->disp.dpy, sync, mode); } return result; } -EGLBoolean eglSignalSyncKHRImpl(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode) { - return eglSignalSyncTmpl(dpy, sync, mode, gEGLImpl.egl.eglSignalSyncKHR); -} - -EGLBoolean eglSignalSyncImpl(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode) { - egl_connection_t* const cnx = &gEGLImpl; - if (cnx->driverVersion >= EGL_MAKE_VERSION(1, 5, 0)) { - if (cnx->egl.eglSignalSync) { - return eglSignalSyncTmpl(dpy, sync, mode, cnx->egl.eglSignalSync); - } - ALOGE("Driver indicates EGL 1.5 support, but does not have eglSignalSync"); - return setError(EGL_BAD_DISPLAY, EGL_FALSE); - } - - return eglSignalSyncTmpl(dpy, sync, mode, gEGLImpl.egl.eglSignalSyncKHR); -} - EGLint eglClientWaitSyncTmpl(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout, PFNEGLCLIENTWAITSYNCKHRPROC eglClientWaitSyncFunc) { const egl_display_ptr dp = validate_display(dpy); @@ -2668,7 +2650,6 @@ static const implementation_map_t sPlatformImplMap[] = { { "eglDestroyImage", (EGLFuncPointer)&eglDestroyImageImpl }, { "eglCreateSync", (EGLFuncPointer)&eglCreateSyncImpl }, { "eglDestroySync", (EGLFuncPointer)&eglDestroySyncImpl }, - { "eglSignalSync", (EGLFuncPointer)&eglSignalSyncImpl }, { "eglClientWaitSync", (EGLFuncPointer)&eglClientWaitSyncImpl }, { "eglGetSyncAttrib", (EGLFuncPointer)&eglGetSyncAttribImpl }, { "eglCreateSyncKHR", (EGLFuncPointer)&eglCreateSyncKHRImpl }, diff --git a/opengl/libs/platform_entries.in b/opengl/libs/platform_entries.in index 08f574e913..46734112d3 100644 --- a/opengl/libs/platform_entries.in +++ b/opengl/libs/platform_entries.in @@ -46,7 +46,6 @@ EGL_ENTRY(EGLImageKHR, eglCreateImageKHR, EGLDisplay, EGLContext, EGLenum, EGLCl EGL_ENTRY(EGLBoolean, eglDestroyImageKHR, EGLDisplay, EGLImageKHR) EGL_ENTRY(EGLSync, eglCreateSync, EGLDisplay, EGLenum, const EGLAttrib*) EGL_ENTRY(EGLBoolean, eglDestroySync, EGLDisplay, EGLSync) -EGL_ENTRY(EGLBoolean, eglSignalSync, EGLDisplay, EGLSync, EGLenum) EGL_ENTRY(EGLint, eglClientWaitSync, EGLDisplay, EGLSync, EGLint, EGLTimeKHR) EGL_ENTRY(EGLBoolean, eglGetSyncAttrib, EGLDisplay, EGLSyncKHR, EGLint, EGLAttrib*) EGL_ENTRY(EGLSyncKHR, eglCreateSyncKHR, EGLDisplay, EGLenum, const EGLint*) |