合成类型

来源:互联网 发布:社交数据是什么意思 编辑:程序博客网 时间:2024/04/29 09:20

 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,
};