Hi thanks for your help! I've resolved this problem, I fix the class SurfaceTextureClient according FakeComposerService::authenticateSurfaceTexture function, make the *value be 0 when query NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER in function SurfaceTextureClient::query(...) , and B2G start up does not dependency on SurfaceFlinger.
Best Regards! 在 2014年1月23日星期四UTC+8上午12时17分55秒,Sotaro Ikeda写道: > Hi > > > > Firefox OS does not use SurfaceFlinger, but using OpenGL and hw composer hal > for composition. > > >From the crash, It seems that your code passes the following code. > > SurfaceTextureClient is a default android class. You might need to fix the > class not to call ComposerService::getComposerService(). > > http://androidxref.com/4.0.4/xref/frameworks/base/libs/gui/SurfaceTextureClient.cpp#250 > > > > By the way from JB4.3, FakeSurfaceComposer is added just to provide > GraphicBufferAlloc to BufferQueue. > > It is added to support nexus7's camra. > > http://mxr.mozilla.org/mozilla-central/source/widget/gonk/nativewindow/FakeSurfaceComposer.cpp > > > > Regards, > > Sotaro > > ----- Original Message ----- > > From: "Zeyun Dou" <[email protected]> > > To: [email protected] > > Sent: Wednesday, January 22, 2014 3:36:22 AM > > Subject: [b2g] B2G dependency on SurfaceFlinger ? > > > > Hi all: > > > > In my device, the Firefox OS dependency on SurfaceFlinger, if I stop the > surfaceflinger service, Firefox OS will start up failed. it will always > request for SurfaceFlinger from ComposerService. > > > > I use the strace to dump the stack , as the belows: > > > > 01-01 08:01:53.610 D/CallStack( 2809): #00 pc 0002855a > /system/lib/libgui.so (android::ComposerService::getComposerService()+33) > > 01-01 08:01:53.610 D/CallStack( 2809): #01 pc 00024096 > /system/lib/libgui.so (android::SurfaceTextureClient::query(int, int*) > const+69) > > 01-01 08:01:53.610 D/CallStack( 2809): #02 pc 00023bd2 > /system/lib/libgui.so > (android::SurfaceTextureClient::hook_query(ANativeWindow const*, int, int*)+7) > > 01-01 08:01:53.610 D/CallStack( 2809): #03 pc 0000f394 > /system/lib/libMali.so > > 01-01 08:01:53.610 D/CallStack( 2809): #04 pc 0007af88 > /system/lib/libMali.so (_mali_frame_builder_acquire_output+36) > > 01-01 08:01:53.610 D/CallStack( 2809): #05 pc 00020d98 > /system/lib/libMali.so > > 01-01 08:01:53.610 D/CallStack( 2809): #06 pc 0001a778 > /system/lib/libMali.so > > 01-01 08:01:53.610 D/CallStack( 2809): #07 pc 000109a0 > /system/lib/libMali.so (shim_glClear+72) > > > > I think maybe I did something wrong, anybody would help me ? thanks! > > _______________________________________________ > > dev-b2g mailing list > > [email protected] > > https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
