【android】SurfaceFlinger (surface composer)
来源:互联网 发布:nba个人数据 编辑:程序博客网 时间:2024/06/04 19:39
SurfaceFlinger is an Android system service, responsible for compositing all the application and system surfaces into a single buffer that is finally to be displayed by display controller.
Let's zoom in above statement.
SurfaceFlinger is a system wide service but it is not directly available to application developer as Sensor or other services can be. Every time you want to update your UI, SurfaceFlinger will kick in. This explains why SurfaceFlinger is a battery drainer.
Besides your application surfaces, there are system surfaces, including status bar, navigation bar and, when rotation happens, surfaces created by the system for rotation animation. Most applications have only one active surface - the one of current foreground activity, others have more than one when SurfaceView is used in the view hierarchy or Presentation mode is used.
SurfaceFlinger is responsible for COMPOSITING all those surfaces. A common misunderstanding is that SurfaceFinger is for DRAWING. It is not correct. Drawing is the job of OpenGL. The interesting thing is SurfaceFlinger used openGL for compositing as well.
The composition result will be put in a system buffer, or native window, which is the source for display controller to fetch data from. This is what you see in the screen.
- 【android】SurfaceFlinger (surface composer)
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制 .
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- android surfaceflinger研究----Surface机制
- Linux下高并发socket最大连接数所受的各种限制
- vector最基本的常识
- [iOS6]如何在Xcode6设置UIView的圆角显示
- UVALive 6172 Hailstone HOTPO (水
- android service 生命周期2
- 【android】SurfaceFlinger (surface composer)
- GIT远程仓库的使用
- UVALive 6173 Casting
- 合并两个有序的数组
- Thunk技术封装好的win32项目窗口类
- UVALive 6174 Pen Counts 规律
- 一道面试题 不用long的相关api将数字字符串转换成long
- UVALive 6175 Maximum Random Walk 期望+概率dp
- 在菜单Setting加入子菜单