summaryrefslogtreecommitdiff
path: root/gralloc4/src/hidl_common/Allocator.cpp
diff options
context:
space:
mode:
authorDevika Krishnadas <kdevika@google.com>2023-09-19 23:26:28 +0000
committerDevika Krishnadas <kdevika@google.com>2023-11-08 01:57:34 +0000
commit8e6973cbaabd9c038e69082699d330462492463d (patch)
tree50f056e35b969ab52fb8cd8e54981f4c30f2eca4 /gralloc4/src/hidl_common/Allocator.cpp
parent1b0e72747646b4443dc62046d01cfe45d525228e (diff)
downloadgchips-8e6973cbaabd9c038e69082699d330462492463d.tar.gz
Revert^2 "gralloc4: Upgrade Allocator to AIDL2"
b04e88e3f68b9d6f42bbde910756380386663a68 Bug: 287353739 Test: VtsHalGraphicsMapperV4_0TargetTest Change-Id: I11acdf0240f7429c41697745201438fd17c403f5
Diffstat (limited to 'gralloc4/src/hidl_common/Allocator.cpp')
-rw-r--r--gralloc4/src/hidl_common/Allocator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gralloc4/src/hidl_common/Allocator.cpp b/gralloc4/src/hidl_common/Allocator.cpp
index d854255..08f2e8e 100644
--- a/gralloc4/src/hidl_common/Allocator.cpp
+++ b/gralloc4/src/hidl_common/Allocator.cpp
@@ -245,6 +245,11 @@ const std::string dump() {
return ss.str();
}
+int isSupported(buffer_descriptor_t *const bufDescriptor) {
+ // this is used as the criteria to determine which allocations succeed.
+ return mali_gralloc_derive_format_and_size(bufDescriptor);
+}
+
} // namespace common
} // namespace allocator
} // namespace arm