Add an llndk api to get a native handle corresponding to ANativeWindow in AImageReader.
Since vendor modules sometimes might need to transfer ANativeWindow(specific to
AImageReader) over hidl to system processes, here, we introduce an llndk
function to convert the ANativeWindow owned by AImageReader into a
native_handle_t which may be transported over hwbinder.
We also introduce a platform only api to retrieve an HIDL
IGraphicBufferProducer from the handle received.
Bug: 110364143
Test: mm -j64
Test: AImageReaderWindowHandleTest
Change-Id: I5f2aec41d9c67c619413c02e48cd97933e3b2986
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
Loading
Please register or sign in to comment