合成类型

本文介绍了 Android 系统中 HWComposer 模块的层类型定义,包括帧缓冲层、覆盖层、背景层及帧缓冲目标层等。这些层类型在实现高效的图形合成和显示过程中扮演着关键角色。

 frameworks/native/services/surfaceflinger./DisplayHardware/HWComposer.cpp

"GLES",
"HWC",
"BACKGROUND",
"FB TARGET",
"UNKNOWN

  


hardware/libhardware/include/hardware/hwcomposer_defs.h

enum {
    /* this layer is to be drawn into the framebuffer by SurfaceFlinger */
    HWC_FRAMEBUFFER = 0,

    /* this layer will be handled in the HWC */
    HWC_OVERLAY = 1,

    /* this is the background layer. it's used to set the background color.
     * there is only a single background layer */
    HWC_BACKGROUND = 2,

    /* this layer holds the result of compositing the HWC_FRAMEBUFFER layers.
     * Added in HWC_DEVICE_API_VERSION_1_1. */
    HWC_FRAMEBUFFER_TARGET = 3,
};


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值