Android的Graphic System
Android gfx system的核心是一个生产者消费者模型:生产者消费者分别存在于不同的进程,消费者对应SurfaceFlinger,生产者对应application或者其他service。在生产者消费者之间流动的是用来显示的数据。
1. GFX ARCH
1.1 总体结构
1.2 数据流模型
The diagram above depicts the flow of SurfaceFlinger and BufferQueue. During frame:
1.red buffer fills up, then slides into BufferQueue
2.after red buffer leaves app, blue buffer slides in, replacing it
3.green buffer and systemUI* shadow-slide into HWC (showing that SurfaceFlinger still has the buffers, but now HWC has prepared them for display via overlay on the next VSYNC).
The blue buffer is referenced by both the display and the BufferQueue. The app is not allowed to render to it until the associated sync fence signals.
On VSYNC, all of these happen at once:
•red buffer leaps into SurfaceFlinger, replacing green buffer
•green buffer leaps into Display, replacing blue buffer, and a dotted-line green twin appears in the BufferQueue
•the blue buffer’s fence is signaled, and the blue buffer in App empties**
•display rect changes from
更多相关文章
- Android事件模型之interceptTouchEvnet ,onTouchEvent关系正解
- 第一章 JAVA入门(Android安全模型)
- Android中ActivityManagerService与应用程序(客户端)通信模型分
- 将keras或tensorflow模型迁移到android端(AndroidStudio)
- Android前景,前途.
- Android的四大组件的作用
- 【全球首个】Android声纹识别程序 SuperLock 2.3 Beta 抢先发送
- Android(安卓)MVVM ViewModel
- Android关于触摸事件跟点击事件两个方法的关系