Android的图形内幕 [英] Android Graphics Internals

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

问题描述

我还没有发现对Android图形系统是如何工作的,特别是一个清晰的解释,它使用的显示服务器,它是基于DirectFB的或X11等。

I haven't found a clear explanation on how the Android graphics system works, specifically, does it use a display server, is it based on DirectFB or X11, etc.

从我设法拼凑,Android的依赖于 Linux的帧缓冲。我还没有发现太多的什么样的显示服务器或窗口管理器的 Android使用复用接入帧缓冲区的,所以任何指针将是非常美联社preciated!

From what I've managed to piece together, Android depends on the Linux frame buffer. I haven't found much on what sort of display server or window manager Android uses to multiplex access to the framebuffer though, so any pointers would be much appreciated!

最后,从我的理解ARM指令集提供的说明,以加速OpenGL的决定,但如何集成显示服务器是不明确的,即。做客户机应用程序洽谈到其中的客户端直接写入的共享存储器缓冲区?

Finally, from what I understand the ARM instruction set provides instructions to accelerate OpenGL, but how this integrates with the display server isn't clear, ie. do client applications negotiate a shared memory buffer into which the client writes directly?

是OpenGL库为平台,加速开源?我发现了一些参考建议,他们是封闭源代码的二进制文件。同样,任何指针将AP preciated。

Are the OpenGL libraries for the platform accelerator open source? I've found some references suggesting they're closed source binaries. Again, any pointers would be appreciated.

推荐答案

有两个核心部分为Android的图形:SurfaceFlinger和Skia的。 SurfaceFlinger是Android的合成器,由窗口管理器用于创建和显示窗口(实际上是所谓的表面。)SurfaceFlinger是在当前的OpenGL ES 1.x的基础上实现的,也可以当使用其他硬件加速技术(MDP,二维阻击器在T-Mobile的G1或硬件上的Xoom的叠加。)

There are two core pieces to Android graphics: SurfaceFlinger and Skia. SurfaceFlinger is Android's compositor, used by the window manager to create and display windows (actually called surfaces.) SurfaceFlinger is implemented on top of OpenGL ES 1.x currently and can also use other hardware acceleration techniques when available (MDP, a 2D blitter on the T-Mobile G1, or hardware overlays on the Xoom.)

每个应用程序主要使用Skia的呈现到其窗口(或表面)。 Skia的是Android的2D图形库。您还可以使用的OpenGL ES 1.x和2.0渲染成一个面。

Each application renders into its windows (or surfaces) using primarily Skia. Skia is Android's 2D graphics library. You can also use OpenGL ES 1.x and 2.0 to render into a surface.

Android不使用的DirectFB或X11或任何其他现有的Linux解决方案。

Android doesn't use DirectFB or X11 or any other existing Linux solution.

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

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