Android 图形系统(一)—— 概念综述

Posted by JasonWu on October 12, 2021

SurfaceControl 和 Surface

Surface 对象使应用能够渲染要在屏幕上显示的图像。通过 SurfaceHolder 接口,应用可以编辑和控制 Surface。

public final class ViewRootImpl implements ViewParent, ... {
    ...
    public final Surface mSurface = new Surface();
    private final SurfaceControl mSurfaceControl = new SurfaceControl();
    ...
}

Canvas & Skia

lockCanvas

unlockCanvasAndPost

SurfaceFlinger

Hardware Composer HAL

Layer

Display

OpenGL ES 和 Vulkan