hwc_composer_device_1 结构参考文档
  
   #include <
   
    hwcomposer.h
   
   >
  
 
    数据字段 | 
  |
| struct hw_device_t | 常见 | 
| int(* | prepare )(struct hwc_composer_device_1 *dev, size_t numDisplays, hwc_display_contents_1_t **displays) | 
| int(* | set )(struct hwc_composer_device_1 *dev, size_t numDisplays, hwc_display_contents_1_t **displays) | 
| int(* | eventControl )(struct hwc_composer_device_1 *dev, int disp, int event, int enabled) | 
| union { | |
| 
       int(*   
    
     blank
    
    )(struct
    
     hwc_composer_device_1
    
     *dev, int disp, int blank)  | 
  |
| 
       int(*   
    
     setPowerMode
    
    )(struct
    
     hwc_composer_device_1
    
     *dev, int disp, int mode)  | 
  |
| }; | |
| int(* | query )(struct hwc_composer_device_1 *dev, int what, int *value) | 
| void(* | registerProcs )(struct hwc_composer_device_1 *dev, hwc_procs_t const *procs) | 
| void(* | dump )(struct hwc_composer_device_1 *dev, char *buff, int buff_len) | 
| int(* | getDisplayConfigs )(struct hwc_composer_device_1 *dev, int disp, uint32_t *configs, size_t *numConfigs) | 
| int(* | getDisplayAttributes )(struct hwc_composer_device_1 *dev, int disp, uint32_t config, const uint32_t *attributes, int32_t *values) | 
| int(* | getActiveConfig )(struct hwc_composer_device_1 *dev, int disp) | 
| int(* | setActiveConfig )(struct hwc_composer_device_1 *dev, int disp, int index) | 
| int(* | setCursorPositionAsync )(struct hwc_composer_device_1 *dev, int disp, int x_pos, int y_pos) | 
| void * | reserved_proc [1] | 
详细说明
定义位于文件 hwcomposer.h 的 484 行 。
字段文档
| union { ... } | 
| int(* blank)(struct hwc_composer_device_1 *dev, int disp, int blank) | 
定义位于文件 hwcomposer.h 的 606 行 。
| struct hw_device_t common | 
硬件混合渲染器设备的常用方法。此 必须 是 hwc_composer_device_1 的第一个成员,因为此结构的用户会在已知 hw_device_t 引用 hwc_composer_device_1 的情况下,将 hw_device_t 转换为 hwc_composer_device_1 指针。
定义位于文件 hwcomposer.h 的 491 行 。
| void(* dump)(struct hwc_composer_device_1 *dev, char *buff, int buff_len) | 
定义位于文件 hwcomposer.h 的 657 行 。
| int(* eventControl)(struct hwc_composer_device_1 *dev, int disp, int event, int enabled) | 
定义位于文件 hwcomposer.h 的 588 行 。
| int(* getActiveConfig)(struct hwc_composer_device_1 *dev, int disp) | 
定义位于文件 hwcomposer.h 的 724 行 。
| int(* getDisplayAttributes)(struct hwc_composer_device_1 *dev, int disp, uint32_t config, const uint32_t *attributes, int32_t *values) | 
定义位于文件 hwcomposer.h 的 710 行 。
| int(* getDisplayConfigs)(struct hwc_composer_device_1 *dev, int disp, uint32_t *configs, size_t *numConfigs) | 
定义位于文件 hwcomposer.h 的 689 行。
| int(* prepare)(struct hwc_composer_device_1 *dev, size_t numDisplays, hwc_display_contents_1_t **displays) | 
定义位于文件 hwcomposer.h 的 527 行 。
| int(* query)(struct hwc_composer_device_1 *dev, int what, int *value) | 
定义位于文件 hwcomposer.h 的 640 行。
| void(* registerProcs)(struct hwc_composer_device_1 *dev, hwc_procs_t const *procs) | 
定义位于文件 hwcomposer.h 的 649 行 。
| void* reserved_proc[1] | 
定义位于文件 hwcomposer.h 的 777 行。
| int(* set)(struct hwc_composer_device_1 *dev, size_t numDisplays, hwc_display_contents_1_t **displays) | 
定义位于文件 hwcomposer.h 的 572 行 。
| int(* setActiveConfig)(struct hwc_composer_device_1 *dev, int disp, int index) | 
定义位于文件 hwcomposer.h 的 745 行 。
| int(* setCursorPositionAsync)(struct hwc_composer_device_1 *dev, int disp, int x_pos, int y_pos) | 
定义位于文件 hwcomposer.h 的 772 行 。
| int(* setPowerMode)(struct hwc_composer_device_1 *dev, int disp, int mode) | 
定义位于文件 hwcomposer.h 的 631 行 。
此结构体的文档是根据以下文件生成的:
- hardware/libhardware/include/hardware/ hwcomposer.h