From 0378f4d89772b6cb7824c0abb2fc6600d7a27325 Mon Sep 17 00:00:00 2001 From: Yiwei Zhang Date: Wed, 12 Aug 2020 15:03:23 -0700 Subject: 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 --- libs/gui/SyncFeatures.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libs/gui/SyncFeatures.cpp') 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 -extern "C" EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name); - namespace android { ANDROID_SINGLETON_STATIC_INSTANCE(SyncFeatures); @@ -40,8 +38,8 @@ SyncFeatures::SyncFeatures() : Singleton(), 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 -- cgit v1.2.3-59-g8ed1b