Android SurfaceFlinger [英] Android SurfaceFlinger

查看:30
本文介绍了Android SurfaceFlinger的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下,是否总是调用 SurfaceFlinger 以将任何类型的绘图绘制到屏幕中?例如,在屏幕上显示 JPG 文件.

I would just like to ask if SurfaceFlinger is always called for any type of drawing into the screen? Example, displaying of JPG file to the screen.

推荐答案

SurfaceFlinger 不是绘制你的窗口.它为您的窗口分配一个帧缓冲区,在您的应用程序中运行的框架直接绘制到该帧缓冲区,而无需与 SurfaceFlinger 交互.绘制窗口时,SurfaceFlinger 涉及的唯一交互是在绘制完帧后将最终的新帧缓冲区合成到屏幕上.

SurfaceFlinger is not what draws your window. It allocates a frame buffer for your window, which the framework running in your application draws directly to without interacting with SurfaceFlinger. The only interaction SurfaceFlinger is involved with when you draw your window is to composite the final new frame buffer to the screen once you are done drawing a frame.

这篇关于Android SurfaceFlinger的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆