diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-13 00:20:46 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-13 00:20:46 +0000 |
commit | 5f0cc2f8196eedc3de862013892594ee8ea0826a (patch) | |
tree | 0cd5751c8557f8ded47b774574fec172c34cc75e | |
parent | 5e97eda10533f204932df136f3809acc5829d0f2 (diff) | |
parent | b3f0912eb7bd661c5ed210d6dc69e7e0c3712e9c (diff) | |
download | gchips-5f0cc2f8196eedc3de862013892594ee8ea0826a.tar.gz |
Snap for 11211173 from b3f0912eb7bd661c5ed210d6dc69e7e0c3712e9c to 24Q1-release
Change-Id: I7300d23146b1f7d7b870a4b806a730f2fc202e5d
-rw-r--r-- | gralloc4/src/aidl/GrallocAllocator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gralloc4/src/aidl/GrallocAllocator.cpp b/gralloc4/src/aidl/GrallocAllocator.cpp index 8e82036..2b01b80 100644 --- a/gralloc4/src/aidl/GrallocAllocator.cpp +++ b/gralloc4/src/aidl/GrallocAllocator.cpp @@ -154,12 +154,13 @@ ndk::ScopedAStatus GrallocAllocator::allocate2( return ndk::ScopedAStatus::ok(); } +// TODO(b/315883761): isSupported should return false for unknown-to-HAL usage ndk::ScopedAStatus GrallocAllocator::isSupported( const AidlAllocator::BufferDescriptorInfo& descriptor, bool* result) { buffer_descriptor_t bufferDescriptor = decodeBufferDescriptorInfo(descriptor); int isBufferDescriptorSupported = arm::allocator::common::isSupported(&bufferDescriptor); - *result = isBufferDescriptorSupported; + *result = (isBufferDescriptorSupported == 0); if (isBufferDescriptorSupported) { MALI_GRALLOC_LOGV("Allocation for the given description will not succeed. error %d", |