diff options
Diffstat (limited to 'gralloc4/src/aidl/GrallocAllocator.h')
-rw-r--r-- | gralloc4/src/aidl/GrallocAllocator.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gralloc4/src/aidl/GrallocAllocator.h b/gralloc4/src/aidl/GrallocAllocator.h index 82d4657..91655a7 100644 --- a/gralloc4/src/aidl/GrallocAllocator.h +++ b/gralloc4/src/aidl/GrallocAllocator.h @@ -2,9 +2,11 @@ #include <aidl/android/hardware/graphics/allocator/AllocationResult.h> #include <aidl/android/hardware/graphics/allocator/BnAllocator.h> +#include <aidl/android/hardware/graphics/allocator/BufferDescriptorInfo.h> #include <aidlcommonsupport/NativeHandle.h> #include <cstdint> +#include <string> #include <vector> namespace pixel { @@ -20,6 +22,17 @@ public: virtual ndk::ScopedAStatus allocate(const std::vector<uint8_t>& descriptor, int32_t count, AidlAllocator::AllocationResult* result) override; + + virtual ndk::ScopedAStatus allocate2(const AidlAllocator::BufferDescriptorInfo& descriptor, + int32_t count, + AidlAllocator::AllocationResult* result) override; + + virtual ndk::ScopedAStatus isSupported(const AidlAllocator::BufferDescriptorInfo& descriptor, + bool* result) override; + + virtual ndk::ScopedAStatus getIMapperLibrarySuffix(std::string* result) override; + + virtual binder_status_t dump(int fd, const char** args, uint32_t numArgs) override; }; } // namespace allocator |