mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
a15f6973534c0a5b7c5cc29bbaf7ce5598c5e062
When users call Mapper:freeBuffer, Mapper will erase buffer handle from mBufferHandles. No matter the result of free buffer handle returned from gralloc, buffer handle is removed from mBufferHandles. This means that a buffer handle can not be freed twice, even if it fail to be freed at the first time. Because users will receive nullptr when they call freeBuffer to free the same bufferHandle at the second time. When freeBuffer is called, Mapper only looks for input buffer in mBufferHandles instead of erasing it from mBufferHandles. If the result of freeBuffer returned by gralloc is NONE, then remove the buffer handle from mBufferHandles. Test: Manual Bug: 141145482 Change-Id: I4e27f54eb219f23a5844d6b440d7160b296c31e2
Description
No description provided
Languages
C++
56.3%
AIDL
41.2%
C
1.5%
Rust
0.4%
Java
0.4%
Other
0.1%