surface flinger framework and issues

by tom » Thu, 09 Apr 2009 16:08:17 GMT


Sponsored Links
 I had read the surface flinger source code in cupcake, and hope to
undertand how the android GUI system work. but now I am mixed-up
still.
and following is my understand and questions:

surfaceflinger work flow:
(1) new surfaceflingerclient(), it will createconnection(), and new a
client
(2) createsurface, it will new layer or layerblur or layerdim by z-
blend order
(3) createoverlay, if layer support overlay
(4) register buffer
(5) draw something on canvas(line, text, bitmap, rect...) which attach
above buffer
(6) post buffer

my questions now:
(1) surfaceflinger.cpp
SurfaceFlinger::createconnection() will create a client which allocate
8MB heap for manangement surface data handle(color conversion, flip,
layers).
how many client have android system? one is BootAnimation, one is test
sample overlays.cpp, one is debug CPUGUAGE, and one is WindowManager?
In fact BootAnimation will destroy when it finish, (but how it destroy
the 8MB heap?). Test sample and debug CPUGUAGE will not start for it
is not enabled.
So android system has only one surface flinger client, isn't it?
OpenGL has another client?

(2)createsurface()
each app with one window has attached one surface? or all app share
one surface?
one surfaceflinger client can create mutiple surfaces?

(3)copybit.default.so
where is the source code?

(4)surfaceflinger not support YUV format?
and it ony support RGB565?

more question and analysis will be continued,
welcome helps

thanks

tom
--~--~---------~--~----~------------~-------~--~----~



surface flinger framework and issues

by wu tony » Sat, 11 Apr 2009 14:15:33 GMT


 2009/4/10 tom <gxiao...@sohu.com>








--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


surface flinger framework and issues

by Eric Chen » Sun, 12 Apr 2009 00:38:49 GMT


 faist fooled




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Android-based game dev?

I know, I know. Likely not, but any chance someone's in the mood to
produce a few games for EXCELLENT pay on the Android framework?.... If
so I'd love to hear from you. 

------------------------------------------------------------------------
----------------------------

LAUREN MILAN TALENT MANAGER / FILTER STUDIOS
D  206.708.8901 



 

 


--~--~---------~--~----~------------~-------~--~----~

2. Developing websites for Android

I'd like to develop some websites in mobile format for Android/
iPhone.  Are there any templates out there, perhaps for MS Publisher?
Specifically, I'd like to do something that looks like the
iphone.facebook.com mobile website, but I'm not a web "designer/
programmer."  Does anyone have any templates they could share?

James
--~--~---------~--~----~------------~-------~--~----~

3. contacts.extensions

4. Spinner setSelection(int) problem

5. Implementing a custom Suggestions Provider

6. How to get image file from Google Chart API

7. Playing Audio in web apps on Android