[android-porting] SurfaceFlinger implementation

2011-05-24 Thread drjunior
I've been digging around SurfaceFlinger service implementation trying to understand how it is implemented. I started studying the / frameworks/base/services/surfaceflinger/SurfaceFlinger.cpp file and the methods handleRepaint() and composeSurfaces(). What I would like to know is how I can access t

[android-porting] Re: SurfaceFlinger implementation

2011-05-25 Thread drjunior
(). > > I think you can access native buffer there. > > On May 24, 8:28 pm, drjunior wrote: > > > > > > > > > I've been digging around SurfaceFlinger service implementation trying > > to understand how it is implemented. I started studying the / >

[android-porting] Re: SurfaceFlinger implementation

2011-05-26 Thread drjunior
istent function implemented by the driver that returns the bitmap). Is this possible? On May 25, 5:26 pm, Dianne Hackborn wrote: > The surface flinger doesn't draw the buffer, the application does. > > > > > > > > > > On Wed, May 25, 2011 at 7

[android-porting] glReadPixels sg2 slow

2011-09-06 Thread drjunior
I am using a samsung galaxy s2 and I am doing a glReadPixels operation with this parameters: glReadPixels(0, 0, sw, sh, GL_RGBA, GL_UNSIGNED_BYTE, ptr); But this is taking more than one second to be performed. So, I think that it's doing some kind of cast from "something" to GL_UNSIGNED_BYTE. As

[android-porting] Re: glReadPixels sg2 slow

2011-09-13 Thread drjunior
moved a long time ago. > > What are you trying to do?  I suspect there is a more GPU friendly way > to achieve the same thing. > > Jim > > On Sep 6, 10:59 am, drjunior wrote: > > > > > > > > > I am using a samsung galaxy s2 and I am doing a glReadPixe

[android-porting] Re: glReadPixels sg2 slow

2011-09-14 Thread drjunior
d less useful > glReadPixels is.  This is certainly not a good way to do high frame rate > video capture.  In HC screenshots are implemented by re-rendering the screen > to a texture. > > > > > > > > > > On Tue, Sep 13, 2011 at 7:52 AM, drjunior wrote: > >