Gralloc模块主要用于图形相关内存的管理,与其关联的设备有alloc_device_t和framebuffer_device_t,可分别用于内存的申请/释放和图像绘制,本文基于android-4.0.3_r1对其实现和应用进行分析。
相关:《iTOP4412 Gralloc(4.4.4_r1)》、《iTOP4412 Gralloc(5.1.1_r9)》
1 HAL 1.1 modulegralloc_module_t“继承”并拓展hw_module_t:
typedef struct gralloc_module_t {
struct hw_module_t common;
int (*registerBuffer)(struct gralloc_module_t const* module, buffer_handle_t handle);
int (*unregisterBuffer)(struct gralloc_module_t const* module, buffer_handl
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)