diff options
author | Yiwei Zhang <zzyiwei@google.com> | 2020-08-12 15:07:51 -0700 |
---|---|---|
committer | Yiwei Zhang <zzyiwei@google.com> | 2020-08-12 15:09:31 -0700 |
commit | 7f43013042c9f4868147497182a5756ca1bc9f26 (patch) | |
tree | f83996628dc9eeb6242cc757a8742e6b0cc9ffe0 /libs/hwui/renderthread/EglManager.cpp | |
parent | dc7aab9ecbc6e1afe05b86c44578d9b0ec90dfe3 (diff) |
Refactor since EGL_ANDROID_native_fence_sync is exposed via eglQueryString
Bug: 157518032
Test: build, compile, boot
Change-Id: I9dee6d54e290bdd1def44dff1f869581f9583c3e
Diffstat (limited to 'libs/hwui/renderthread/EglManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/EglManager.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/hwui/renderthread/EglManager.cpp b/libs/hwui/renderthread/EglManager.cpp index 2a8aa8c3e5b7..a11678189bad 100644 --- a/libs/hwui/renderthread/EglManager.cpp +++ b/libs/hwui/renderthread/EglManager.cpp @@ -238,12 +238,8 @@ EGLConfig EglManager::loadFP16Config(EGLDisplay display, SwapBehavior swapBehavi return config; } -extern "C" EGLAPI const char* eglQueryStringImplementationANDROID(EGLDisplay dpy, EGLint name); - void EglManager::initExtensions() { auto extensions = StringUtils::split(eglQueryString(mEglDisplay, EGL_EXTENSIONS)); - auto extensionsAndroid = - StringUtils::split(eglQueryStringImplementationANDROID(mEglDisplay, EGL_EXTENSIONS)); // For our purposes we don't care if EGL_BUFFER_AGE is a result of // EGL_EXT_buffer_age or EGL_KHR_partial_update as our usage is covered @@ -265,10 +261,7 @@ void EglManager::initExtensions() { EglExtensions.surfacelessContext = extensions.has("EGL_KHR_surfaceless_context"); EglExtensions.fenceSync = extensions.has("EGL_KHR_fence_sync"); EglExtensions.waitSync = extensions.has("EGL_KHR_wait_sync"); - - // EGL_ANDROID_native_fence_sync is not exposed to applications, so access - // this through the private Android-specific query instead. - EglExtensions.nativeFenceSync = extensionsAndroid.has("EGL_ANDROID_native_fence_sync"); + EglExtensions.nativeFenceSync = extensions.has("EGL_ANDROID_native_fence_sync"); } bool EglManager::hasEglContext() { |