The binder does it for ashmem, but are u sure it does it for buffer
also?

On May 11, 8:51 pm, Nitin Mahajan <[email protected]> wrote:
> Hi!
>
> On Fri, May 11, 2012 at 5:11 PM, NimeshChanchani
>
>
>
>
>
>
>
>
>
> <[email protected]> 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?
>
> If your problem is just, to share the with another process, then just
> pass it over binder communication.
> The binder driver internally takes care of duplicating it.
>
> regards
> -Nitin
>
>
>
>
>
>
>
>
>
> > can anyone help?
>
> > Regards,
> > Nimesh
>
> > --
> > unsubscribe: [email protected]
> > website:http://groups.google.com/group/android-porting

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to