Hi, Tony

Thank for your reply. I changed code as following before. But it doesn't
work. Do you know what's the problem? What's your test code? Does it work?

    sp<Surface> surface = client->createSurface(getpid(), 0, 320, 240,
            PIXEL_FORMAT_UNKNOWN, ISurfaceComposer::ePushBuffers);
    surface->setPosition(10, 10); /* it doen't work for me */

    // get to the isurface
    sp<ISurface> isurface = Test::getISurface(surface);
    printf("isurface = %p\n", isurface.get());

    // now request an overlay
    sp<OverlayRef> ref = isurface->createOverlay(320, 240,
PIXEL_FORMAT_RGB_565);

    sp<Overlay> overlay = new Overlay(ref);
    ...

Regards,
Jill

On Wed, Apr 29, 2009 at 4:12 PM, tony <e13...@gmail.com> wrote:

>
> The application can change position of the Push Surface, and it is
> finally handled in LayerBuffer.
>
> You can refer LayerBuffer::OverlaySource::onVisibilityResolved in
> LayerBuffer.cpp
>
> On Apr 29, 1:32 pm, "Jill.Zhou" <ruohong.z...@gmail.com> wrote:
> > \hardware\libhardware\libhardware\modules\overlay has a interface
> > overlay_setPositiion to set position of overlay engine. But it seems
> > this interface doesn't expose to application to set up overlay
> > position. Is there any way for application to set up overlay position?
> >
> > Thanks
> > Jill
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to