From 56c4b15aeea82af058c2049dee4cb21c741e01d9 Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 3 Sep 2020 17:53:31 -0700 Subject: Remove obsolete DONT_USE_FENCE_SYNC option Unable to find any recent uses of DONT_USE_FENCE_SYNC and EGL_KHR_fence_sync is a CDD required extension, so device support must be present. So remove this last config option from libgui, and then also remove the dump methods that just return the library name. Test: builds Change-Id: I29362d6cb7ce9ef9f2338dcbf55814973abd6c3d --- libs/gui/SyncFeatures.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'libs/gui/SyncFeatures.cpp') diff --git a/libs/gui/SyncFeatures.cpp b/libs/gui/SyncFeatures.cpp index 8df6e81596..1a8fc1a00a 100644 --- a/libs/gui/SyncFeatures.cpp +++ b/libs/gui/SyncFeatures.cpp @@ -71,15 +71,7 @@ bool SyncFeatures::useNativeFenceSync() const { return mHasNativeFenceSync; } bool SyncFeatures::useFenceSync() const { -#ifdef DONT_USE_FENCE_SYNC - // on some devices it's better to not use EGL_KHR_fence_sync - // even if they have it - return false; -#else - // currently we shall only attempt to use EGL_KHR_fence_sync if - // USE_FENCE_SYNC is set in our makefile return !mHasNativeFenceSync && mHasFenceSync; -#endif } bool SyncFeatures::useWaitSync() const { return (useNativeFenceSync() || useFenceSync()) && mHasWaitSync; -- cgit v1.2.3-59-g8ed1b