Android Display buffer_handle_t的定义

1. buffer_handle_t

文件位置:system\core\include\system\window.h

typedef const native_handle_t* buffer_handle_t;

2. native_handle_t

文件位置:system\core\include\cutils\native_handle.h

typedef struct native_handle
{
    int version;        /* sizeof(native_handle_t) */
    int numFds;       /* number of file-descriptors at &data[0] */
    int numInts;      /* number of ints at &data[numFds] */
    int data[0];        /* numFds + numInts ints */
} native_handle_t;

原文地址:https://www.cnblogs.com/eustoma/p/2541416.html