Hi, you can use the MemoryHeapBase and pass it trough a binder.
frameworks/base/include/binder/MemoryHeapBase.h Alternatively, you can also pass a file descriptor using writeFileDescriptor in a Parcel, if this is what you need. What do you mean under "produced framebuffer"? Is it a Linux Kernel framebuffer or a user space graphical buffer? You may consider to setup a virtual framebuffer on Kernel level. On Friday, May 11, 2012 1:41:06 PM UTC+2, NimeshChanchani wrote: > > Hi Guys, > > 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 > overlay, > > 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.h > > 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 > consumed > by > 68 * gralloc_module_t. The framebuffer_device_t does not > need a > handle, > 69 * and the special value IMG_FRAMEBUFFER_FD is used > instead. > 70 */ > 71 int fd[MAX_SUB_ALLOCS]; > > > but i couldn't get much info or sample code on how to "export" fd to > another process? > > can anyone help? > > Regards, > Nimesh -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
