|2012-05-11 06:51:57||[Omapandroid-discussion] Sharing graphics memory between twoprocesses|
|Posted By: <email@example.com>|
Join Date: 2006-06-12
Location: UNITED STATES
Im using a pandaboard , and I have ubuntu chrooted from android.
i have a framebuffer that i want to overlay on the android side ,
which is being produced on the ubuntu side.
to share memory , I know i can use "ashmem" or "ion_alloc" , but i
dont want to use them as it would involve a
buffer copy, before passing it to the to the Display Subsystem for
What I want to do is, use "IMG_native_handle_t" in "hal_public.h"
at : http://androidxref.com/source/xref/hardware/ti/omap4xxx/hwc/hal_public=
the comment above "fd" field says that:
/* The `fd' field is used to "export" a meminfo to another process.
67 * Therefore, it is allocated by alloc_device_t, and consum=
68 * gralloc_module_t. The framebuffer_device_t does not need=
69 * and the special value IMG_FRAMEBUFFER_FD is used instead=
71 int fd[MAX_SUB_ALLOCS];
but i couldn't get much info or sample code on how to "export" fd to
can anyone help?
Subject to local law, communications with Accenture and its affiliates incl=
uding telephone calls and emails (including content), may be monitored by o=
ur systems for the purposes of security and the assessment of internal comp=
liance with Accenture policy.