Flutter Engine
The Flutter Engine
|
A wrapper for AHardwareBuffer https://developer.android.com/ndk/reference/group/a-hardware-buffer. More...
#include <hardware_buffer.h>
Public Member Functions | |
HardwareBuffer (HardwareBufferDescriptor descriptor) | |
~HardwareBuffer () | |
HardwareBuffer (const HardwareBuffer &)=delete | |
HardwareBuffer & | operator= (const HardwareBuffer &)=delete |
bool | IsValid () const |
AHardwareBuffer * | GetHandle () const |
const HardwareBufferDescriptor & | GetDescriptor () const |
const AHardwareBuffer_Desc & | GetAndroidDescriptor () const |
std::optional< uint64_t > | GetSystemUniqueID () const |
Get the system wide unique ID of the hardware buffer if possible. This is only available on Android API 31 and above. Within the process, the handle are unique. | |
Static Public Member Functions | |
static bool | IsAvailableOnPlatform () |
static std::optional< AHardwareBuffer_Desc > | Describe (AHardwareBuffer *buffer) |
static std::optional< uint64_t > | GetSystemUniqueID (AHardwareBuffer *buffer) |
Get the system wide unique ID of the hardware buffer if possible. This is only available on Android API 31 and above. Within the process, the handle are unique. | |
A wrapper for AHardwareBuffer https://developer.android.com/ndk/reference/group/a-hardware-buffer.
This wrapper creates and owns a handle to a managed hardware buffer. That is, there is no ability to take a reference to an externally created hardware buffer.
This wrapper is only available on Android API 29 and above.
Definition at line 90 of file hardware_buffer.h.
|
explicit |
Definition at line 44 of file hardware_buffer.cc.
|
default |
|
delete |
|
static |
Definition at line 114 of file hardware_buffer.cc.
const AHardwareBuffer_Desc & impeller::android::HardwareBuffer::GetAndroidDescriptor | ( | ) | const |
Definition at line 90 of file hardware_buffer.cc.
const HardwareBufferDescriptor & impeller::android::HardwareBuffer::GetDescriptor | ( | ) | const |
Definition at line 86 of file hardware_buffer.cc.
AHardwareBuffer * impeller::android::HardwareBuffer::GetHandle | ( | ) | const |
Definition at line 70 of file hardware_buffer.cc.
std::optional< uint64_t > impeller::android::HardwareBuffer::GetSystemUniqueID | ( | ) | const |
Get the system wide unique ID of the hardware buffer if possible. This is only available on Android API 31 and above. Within the process, the handle are unique.
Definition at line 98 of file hardware_buffer.cc.
|
static |
Get the system wide unique ID of the hardware buffer if possible. This is only available on Android API 31 and above. Within the process, the handle are unique.
Definition at line 102 of file hardware_buffer.cc.
|
static |
Definition at line 94 of file hardware_buffer.cc.
bool impeller::android::HardwareBuffer::IsValid | ( | ) | const |
Definition at line 66 of file hardware_buffer.cc.
|
delete |