|
|
所以,比如mSession->createSurface(String8(“samsungAniDim”), dinfo.w, dinfo.h, PIXEL_FORMAT_RGB_565, 0x00020000),是对应eFXSurfaceDim!!
http://blog.csdn.net/DroidPhone/article/details/6002237
改了一点代码,可以让SurfaceFlinger显示当前的layer个数,显示flag等:
01-11 03:13:15.580 2123 2123 D SurfaceFlinger: numHwLayers=3, flags=0000000001-11 03:13:15.580 2123 2123 D SurfaceFlinger: type | handle | hint | flag | tr | blnd | format | source crop (l,t,r,b) | frame | name 01-11 03:13:15.580 2123 2123 D SurfaceFlinger: -----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------01-11 03:13:15.580 2123 2123 D SurfaceFlinger: HWC | b5c44520 | 0000 | 0000 | 00 | 0100 | RGBA_8888 | 0.0, 33.0, 800.0, 1280.0 | 0, 33, 800, 1280 | com.samsung.android.FactoryTestLauncher/com.samsung.android.FactoryTestLauncher.ui.Main01-11 03:13:15.580 2123 2123 D SurfaceFlinger: HWC | b5c44200 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0.0, 0.0, 800.0, 33.0 | 0, 0, 800, 33 | StatusBar01-11 03:13:15.580 2123 2123 D SurfaceFlinger: FB TARGET | b606d340 | 0000 | 0000 | 00 | 0105 | RGBA_8888 | 0.0, 0.0, 800.0, 1280.0 | 0, 0, 800, 1280 | HWC_FRAMEBUFFER_TARGET
|
|