I create a inner Class which is a Thread class in Surfaceflinger, and add:
"mutable SurfaceFlingerSynchro  _mSyncObject[DISPLAY_COUNT]" etc. to make
waitForEvent(int dpy) in SurfaceFlinger.cpp can be waked separately
according to the dpy which is passed by client.

Now openGlobalTransaction() and closeGlobalTransaction() exist some problem,
it doesn't distinguish the display, so like signalEvent(int dpy) canot be
called separately.

And my question is :
1. How or where to add interface which applications can access above
framework.
2. My emulator can only support two screens with the same resolution well.
If the resolution is different, the display area of the bigger one is same
as the smaller one.

Thanks!

BR,
bigcren

On Fri, Dec 4, 2009 at 5:11 PM, hongxue.ren <[email protected]> wrote:

> Hi Robin,
>
> Your suggestions before are very helpful for me.
> And I have some questions here:
> In readyToRun() of surfaceflinger.cpp , I intialize  the graphics device 1
> and 2 simultaneously, however it seems that hw.makeCurrent() only can bind
> one single thread, and only the last graphic device binded is
> successfully.(Now I have no this kind of device with two displays, so I
> modify the qemu, and add another framebuffer device to emulator, and it can
> work normally ). My question is if it's necessary to add an interface to
> make Surfaceflinger hold two thread like AudioFlinger?
>
> Thanks and regards
> bigcren
>
>
> On Wed, Oct 21, 2009 at 4:26 PM, Robin Gujjar <[email protected]>wrote:
>
>>
>> Hi Nikhil,
>>
>> You have to modify the surfacefilnger and UI code for Fb1
>> initialization, you will find some comment in surafceflinger.cpp for
>> FB1 initilization( DisplayHardware instance for FB1 on the basis of
>> dpy value). And u have to modify the EGLDislaySurface.cpp also. Other
>> modification is alos there please read the below post for more
>> information .
>>
>>
>> http://groups.google.com/group/android-porting/browse_thread/thread/c726d1258955314d
>>
>> http://groups.google.com/group/android-porting/browse_thread/thread/6b9e7547de761f0a
>>
>> thanks and regards
>> Robin Singh
>>
>>
>>
>> On Oct 20, 8:01 pm, nikhil <[email protected]> wrote:
>> > Hi ,
>> >
>> > Can anybody tell us the exact modification required in  SurfaceFlinger
>> > and the corresponding UI code for supporting multiple framebuffer
>> > device (/dev/fb0 and /dev/fb1) .
>> >
>> > Idea is that the other display should be initialized  asynchronously,
>> > so that it could come and go
>> >
>> > Thanks in advance for all the help .
>> > Regards,
>> > Nikhil
>> --~--~---------~--~----~------------~-------~--~----~
>> unsubscribe: 
>> [email protected]<android-porting%[email protected]>
>> website: http://groups.google.com/group/android-porting
>> -~----------~----~----~----~------~----~------~--~---
>>
>>
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to