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. custom background color on listview

How can something so simple be so hard to achieve.

I have a custom list extending an ArrayAdapter for rendering the list
items. I want the items on my list to have a white background color,
and the selected item to have a different background color. I am
unable to intercept the onItemSelected and onNothingSelected (in the
ListActivity??? In the class extending ArrayAdapter???). I have looked
at Mark Murphys examples to no avail.

The strategy so far: Setting TextView to
android:background="#FFFFFF" (defined in row.xml being inflated in
getView) (ok, the list background is white). But select a list item,
and nothing happens. android:listSelector does nothing (tried on both
TextView and on the ListView itself). No other hints or tricks in the
forums provide a solution for this.

It's nothing fancy. I just want the user to be able to see a white
list and see the result of the interaction.


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

2. error 404 comes up when tried to browse the site

Hi,
      When i tried to browse a particular website through Browser
application, i get error ERROR 404 PAGE NOT FOUND. The same link is
accessible in my desktop.

What could be the problem??

I get messahe like this

I/ActivityManager(   86): Starting activity: Intent {
action=android.intent.action.VIEW
data= "website - link i tried"

 I/NewsBroadcastReceiver(  374): action: "some response data is NULL
here..."

 I/ActivityManager(   86): Stopping service:

 I/PollingManagerClient(  126): close()

 I/CheckinService(   86): From server: Intent {
action=android.server.checkin.FOTA_CANCEL }

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

3. How to bind gmail account to GoogleLoginService

4. Views below ScrollView

5. Bit of a problem with an app Im making...

6. Touch Listener

7. Two applications sharing android:sharedUserID