Thank you Mark for your help.

For question #1, is this surface created via createSurface() from
SurfaceFlinger client to SurfaceFlinger server?  If so, there must be
2 buffers associated with this surface: surface BB (for composition)
and surface FB (for display).  Am I correct?  Can you please confirm?
Thanks.

On Nov 19, 7:22 am, Mark Murphy <[email protected]> wrote:
> android-newbie wrote:
> > 1.  How does surfaceCreated get called?  From SDK, it is called
> > immediately after the surface is first created, but I still don't
> > know
> > who creates this surface?
>
> Android does, as part of setting up the SurfaceView after your
> onCreate() method returns.
>
> > 2.  Why do we need to set it as SURFACE_TYPE_PUSH_BUFFERS?
>
> SurfaceView has multiple roles (e.g., OpenGL). "Push buffers" is one
> used by various things (camera, video playback) that allow low-level
> code to write to the screen.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> Android 1.6 Programming Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to