Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1398159d authored by Jayant Chowdhary's avatar Jayant Chowdhary
Browse files

Clarify documentation for AImageReader_getHGBPFromHandle.



Explicitly state that the native handle taken by AImageReader_getHGBPFromHandle must have been
obtained from the llndk api : AImageReader_getWindowNativeHandle().

Bug: 110364143

Test: mm -j64

Change-Id: I75312b29b25cb79499a5c1a86f2d0ebbff2c3d67
Signed-off-by: default avatarJayant Chowdhary <jchowdhary@google.com>
parent 9b9ac44f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -170,9 +170,7 @@ struct AImageReader : public RefBase {
};

// Retrieves HGraphicBufferProducer corresponding to the native_handle_t
// provided. This method also deletes the HalToken corresponding to the
// native_handle_t. Thus, if it is used twice in succession, the second call
// returns nullptr;
// provided (this native handle MUST have been obtained by AImageReader_getWindowNativeHandle()).
sp<HGraphicBufferProducer> AImageReader_getHGBPFromHandle(const native_handle_t *handle);

#endif // _NDK_IMAGE_READER_PRIV_H