Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gralloc4 support #25

Open
wants to merge 1 commit into
base: r/ics3a/main
Choose a base branch
from

Conversation

JeevakaPrabu
Copy link

No description provided.

@JeevakaPrabu JeevakaPrabu force-pushed the gralloc4_support branch 2 times, most recently from f5bf0ab to 98d9cf6 Compare May 2, 2023 07:01
As per Gralloc 4.0 mapper, buffer has to be imported before its usage
and released after its usage.

Changes include:
- Add importBuffer and release functions to Gralloc1
- Import the buffer before its usage.
- Release the buffer after its usage.

Tracked-On: OAM-105783
Co-authored-by: Jeevaka Prabu Badrappan <[email protected]>
Signed-off-by: Deepa K G <[email protected]>
Signed-off-by: Jeevaka Prabu Badrappan <[email protected]>
@@ -1079,35 +1080,49 @@ status_t VirtualFakeCamera3::processCaptureRequest(camera3_capture_request *requ
ALOGE("%s: Request %d: Buffer %zu: Fence timed out after %d ms", __FUNCTION__,
frameNumber, i, kFenceTimeoutMs);
}
destBuf.rawHandle = native_handle_clone(*(destBuf.buffer));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we call native_handle_clone, but we didn't release the handle, will there be memory leak?

@sysopenci sysopenci added the Stale Stale label for inactive open prs label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Stale label for inactive open prs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants