summaryrefslogtreecommitdiff
path: root/libs/ui/Gralloc5.cpp
diff options
context:
space:
mode:
author Justin Yun <justinyun@google.com> 2024-03-20 00:17:15 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-03-20 00:17:15 +0000
commitbc28d7b5b4fd58b5969e01befb3f472a8f0ff2f5 (patch)
tree7c95fd1c2bdc10c26d40c00b33fe4b1238b41bec /libs/ui/Gralloc5.cpp
parentf8e2689ca8bc04514cc990d17bb96e722729df18 (diff)
parent404dbf21bb31bf737808def627d03b37445b9f23 (diff)
Merge "Include llndk-versioning.h for LLNDK versioning." into main
Diffstat (limited to 'libs/ui/Gralloc5.cpp')
-rw-r--r--libs/ui/Gralloc5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ui/Gralloc5.cpp b/libs/ui/Gralloc5.cpp
index 25850f71cb..303043a35a 100644
--- a/libs/ui/Gralloc5.cpp
+++ b/libs/ui/Gralloc5.cpp
@@ -22,6 +22,7 @@
#include <aidlcommonsupport/NativeHandle.h>
#include <android/binder_manager.h>
#include <android/hardware/graphics/mapper/utils/IMapperMetadataTypes.h>
+#include <android/llndk-versioning.h>
#include <binder/IPCThreadState.h>
#include <dlfcn.h>
#include <ui/FatVector.h>
@@ -90,8 +91,7 @@ static void *loadIMapperLibrary() {
void* so = nullptr;
// TODO(b/322384429) switch this to __ANDROID_API_V__ when V is finalized
- // TODO(b/302113279) use __ANDROID_VENDOR_API__ for vendor variant
- if (__builtin_available(android __ANDROID_API_FUTURE__, *)) {
+ if API_LEVEL_AT_LEAST(__ANDROID_API_FUTURE__, 202404) {
so = AServiceManager_openDeclaredPassthroughHal("mapper", mapperSuffix.c_str(),
RTLD_LOCAL | RTLD_NOW);
} else {