openharmony 鸿蒙 _composer_interface_i_display_composer_v13

2026-08-25 浏览 (1)

IDisplayComposer

概述

显示合成接口声明。

主要提供注册热插拔事件回调、获取显示设备能力集等功能,在v1_2.IDisplayComposer基础上新增注册更改VBlankIdle事件回调、清除缓冲区、硬光标特性等功能,具体方法使用详见函数说明。

起始版本: 6.0

相关模块: Display

汇总

Public 成员函数

名称描述
RegHwcEventCallback ([in] IHwcEventCallback cb)注册环境变化时要调用的回调接口。
GetSupportLayerType ([in] unsigned int devId, [out] struct LayerType[] types)返回支持的图层类型列表。
SetTunnelLayerId ([in] unsigned int devId, [in] unsigned int layerId, [in] unsigned long tunnelId)设置隧道层的TunnelId。
SetTunnelLayerProperty ([in] unsigned int devId, [in] unsigned int layerId, [in] unsigned int property)设置隧道层的隧道属性。
SetTunnelLayerPosition ([in] unsigned int devId, [in] unsigned long tunnelId, [in] int x, [in] int y)设置隧道层的位置参数。
SetTunnelLayerBuffer ([in] unsigned int devId, [in] unsigned long tunnelId, [in] NativeBuffer inHandle, [in] HdifdParcelable acquireFence)设置隧道层的层缓冲区地址。
CommitTunnelLayer ([in] unsigned int devId, [in] unsigned long tunnelId, [out] HdifdParcelable releaseFence)从属隧道提交隧道层。

成员函数说明

CommitTunnelLayer()

IDisplayComposer::CommitTunnelLayer([in] unsigned int devId, [in] unsigned long tunnelId, [out] HdifdParcelable releaseFence)

描述

从属隧道提交隧道层。

起始版本: 6.0

参数:

名称描述
devId显示设备ID。
tunnelId隧道层ID。
releaseFence释放缓冲栅栏。

返回:

0表示执行成功。

其他值表示执行失败,具体错误码查看DispErrCode

GetSupportLayerType()

IDisplayComposer::GetSupportLayerType([in] unsigned int devId, [out] struct LayerType[] types)

描述

返回支持的图层类型列表。

起始版本: 6.0

参数:

名称描述
devId显示设备ID。
types支持的图层类型。

返回:

0表示执行成功。

其他值表示执行失败,具体错误码查看DispErrCode

RegHwcEventCallback()

IDisplayComposer::RegHwcEventCallback([in] IHwcEventCallback cb)

描述

注册环境变化时要调用的回调接口。

起始版本: 6.0

参数:

名称描述
cb用于通知图形服务发生环境更改事件的实例。

返回:

0表示执行成功。

其他值表示执行失败,具体错误码查看DispErrCode

SetTunnelLayerBuffer()

IDisplayComposer::SetTunnelLayerBuffer([in] unsigned int devId, [in] unsigned long tunnelId, [in] NativeBuffer inHandle, [in] HdifdParcelable acquireFence)

描述

设置隧道层的层缓冲区地址。

起始版本: 6.0

参数:

名称描述
devId显示设备ID。
tunnelId隧道层ID。
inHandle缓冲区。
acquireFence缓冲围栏。

返回:

0表示执行成功。

其他值表示执行失败,具体错误码查看DispErrCode

SetTunnelLayerId()

IDisplayComposer::SetTunnelLayerId([in] unsigned int devId, [in] unsigned int layerId, [in] unsigned long tunnelId)

描述

设置隧道层的TunnelId。

起始版本: 6.0

参数:

名称描述
devId显示设备ID。
layerIdIndicates 操作的图层的ID。
tunnelIdIndicates 隧道层ID。

返回:

其他值表示执行失败,具体错误码查看DispErrCode

SetTunnelLayerPosition()

IDisplayComposer::SetTunnelLayerPosition([in] unsigned int devId, [in] unsigned long tunnelId, [in] int x, [in] int y)

描述

设置隧道层的位置参数。

起始版本: 6.0

参数:

名称描述
devId显示设备ID。
tunnelId隧道层ID。
xIndicates x坐标。
yIndicates y坐标。

返回:

0表示执行成功。

其他值表示执行失败,具体错误码查看DispErrCode

SetTunnelLayerProperty()

IDisplayComposer::SetTunnelLayerProperty([in] unsigned int devId, [in] unsigned int layerId, [in] unsigned int property)

描述

设置隧道层的隧道属性。

起始版本: 6.0

参数:

名称描述
devId显示设备ID。
layerId操作的图层的ID。
property隧道层属性。

返回:

0表示执行成功。

其他值表示执行失败,具体错误码查看DispErrCode

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 index_composer_display_v12

openharmony 鸿蒙 interface_i_allocator_v10

openharmony 鸿蒙 interface_i_metadata_v11

openharmony 鸿蒙 _i_display_composer_8idl_v11

openharmony 鸿蒙 interface_i_refresh_callback_v10

openharmony 鸿蒙 _layer_color_v10

openharmony 鸿蒙 index_buffer_display_v10

openharmony 鸿蒙 _buffer_display_v14

openharmony 鸿蒙 _gfx_opt_v10

openharmony 鸿蒙 interface_i_mapper_v10

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/EZOfH1ww