[iTOP4412|android-4.0.3

[iTOP4412|android-4.0.3,第1张

0 前言

    Gralloc模块主要用于图形相关内存的管理,与其关联的设备有alloc_device_tframebuffer_device_t,可分别用于内存的申请/释放和图像绘制,本文基于android-4.0.3_r1对其实现和应用进行分析。

相关:《iTOP4412 Gralloc(4.4.4_r1)》、《iTOP4412 Gralloc(5.1.1_r9)》

1 HAL 1.1 module

    gralloc_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

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/717810.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-25
下一篇 2022-04-25

发表评论

登录后才能评论

评论列表(0条)

保存