summaryrefslogtreecommitdiff
path: root/libs/gui/SyncFeatures.cpp
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2020-09-03 17:53:31 -0700
committer John Reck <jreck@google.com> 2020-09-03 17:55:52 -0700
commit56c4b15aeea82af058c2049dee4cb21c741e01d9 (patch)
treeeaf6843eb1d5c57bc4b901f04abe33ab2affcff8 /libs/gui/SyncFeatures.cpp
parent1b66d525436ced81193294c73886f249ffb9100c (diff)
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
Diffstat (limited to 'libs/gui/SyncFeatures.cpp')
-rw-r--r--libs/gui/SyncFeatures.cpp8
1 files changed, 0 insertions, 8 deletions
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;