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

更多相关文章

  1. Android事件模型之interceptTouchEvnet ,onTouchEvent关系正解
  2. 第一章 JAVA入门(Android安全模型)
  3. Android中ActivityManagerService与应用程序(客户端)通信模型分
  4. 将keras或tensorflow模型迁移到android端(AndroidStudio)
  5. Android前景,前途.
  6. Android的四大组件的作用
  7. 【全球首个】Android声纹识别程序 SuperLock 2.3 Beta 抢先发送
  8. Android(安卓)MVVM ViewModel
  9. Android关于触摸事件跟点击事件两个方法的关系

随机推荐

  1. Android分享到微信好友、朋友圈
  2. Android(安卓)创建自己的签名证书文件key
  3. Android(安卓)中的线程池
  4. 一些关于android屏幕的小知识
  5. Android按键监听与模拟分析
  6. Android中Toast显示时间的自定义
  7. 简谈WP,IOS,Android智能手机OS
  8. 在Android里如何判断一个指定的经纬度点
  9. Android(安卓)API Guides---Verifying Ap
  10. android安全问题(二) 程序锁