diff options
| author | 2020-08-12 15:03:23 -0700 | |
|---|---|---|
| committer | 2020-08-12 15:56:42 -0700 | |
| commit | 0378f4d89772b6cb7824c0abb2fc6600d7a27325 (patch) | |
| tree | 482923fa9e6127dfc19d87b5217021a193a1cd8e /libs/gui/SyncFeatures.cpp | |
| parent | 249afbf18dbb611b3e02f81db1b0ec0a5bf6e92d (diff) | |
Expose EGL_ANDROID_native_fence_sync to the applications
This change also sorts the global extension lists in alphabetical order.
Bug: 157518032
Test: build, compile, boot
Test: EGL_ANDROID_native_fence_sync in RenderEngine dump
Change-Id: I6614b9532daf7747fcadbe38744d5293cf8198b4
Diffstat (limited to 'libs/gui/SyncFeatures.cpp')
| -rw-r--r-- | libs/gui/SyncFeatures.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/gui/SyncFeatures.cpp b/libs/gui/SyncFeatures.cpp index fcae05c8ad..8df6e81596 100644 --- a/libs/gui/SyncFeatures.cpp +++ b/libs/gui/SyncFeatures.cpp @@ -27,8 +27,6 @@ #include <private/gui/SyncFeatures.h> -extern "C" EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name); - namespace android { ANDROID_SINGLETON_STATIC_INSTANCE(SyncFeatures); @@ -40,8 +38,8 @@ SyncFeatures::SyncFeatures() : Singleton<SyncFeatures>(), EGLDisplay dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY); // This can only be called after EGL has been initialized; otherwise the // check below will abort. - const char* exts = eglQueryStringImplementationANDROID(dpy, EGL_EXTENSIONS); - LOG_ALWAYS_FATAL_IF(exts == nullptr, "eglQueryStringImplementationANDROID failed"); + const char* exts = eglQueryString(dpy, EGL_EXTENSIONS); + LOG_ALWAYS_FATAL_IF(exts == nullptr, "eglQueryString failed"); if (strstr(exts, "EGL_ANDROID_native_fence_sync")) { // This makes GLConsumer use the EGL_ANDROID_native_fence_sync // extension to create Android native fences to signal when all |