From 6f5f60ed10bfcecd5dab4831d0ad8cbd79bb917b Mon Sep 17 00:00:00 2001 From: tujingwei Date: Thu, 22 Aug 2024 05:13:01 -0400 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20GfxOpt=E4=B8=AD=E6=B7=BB=E5=8A=A0la?= =?UTF-8?q?yer=E7=9B=B8=E5=85=B3=E5=8F=98=E9=87=8F=E4=BE=9B=E7=A1=AC?= =?UTF-8?q?=E4=BB=B6=E5=90=88=E6=88=90=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tujingwei --- display/composer/v1_0/DisplayComposerType.idl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/display/composer/v1_0/DisplayComposerType.idl b/display/composer/v1_0/DisplayComposerType.idl index fce53686..d3fd7cb9 100644 --- a/display/composer/v1_0/DisplayComposerType.idl +++ b/display/composer/v1_0/DisplayComposerType.idl @@ -449,6 +449,9 @@ struct GfxOpt { boolean enableScale; /**< Scaling enable bit */ enum TransformType rotateType; /**< Rotation type */ enum MirrorType mirrorType; /**< Mirror type */ + unsigned int zorder; /**< layer zorder*/ + unsigned int index; /**< layers index*/ + unsigned int maxCnt; /**< layers count*/ }; /** -- Gitee From e8ac43d22c063dcfbf744ef5a239c449c91b5c3f Mon Sep 17 00:00:00 2001 From: tujingwei Date: Mon, 26 Aug 2024 22:50:34 -0400 Subject: [PATCH 2/2] update Signed-off-by: tujingwei --- display/composer/v1_0/DisplayComposerType.idl | 3 --- display/composer/v1_2/DisplayComposerType.idl | 12 +++++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/display/composer/v1_0/DisplayComposerType.idl b/display/composer/v1_0/DisplayComposerType.idl index d3fd7cb9..fce53686 100644 --- a/display/composer/v1_0/DisplayComposerType.idl +++ b/display/composer/v1_0/DisplayComposerType.idl @@ -449,9 +449,6 @@ struct GfxOpt { boolean enableScale; /**< Scaling enable bit */ enum TransformType rotateType; /**< Rotation type */ enum MirrorType mirrorType; /**< Mirror type */ - unsigned int zorder; /**< layer zorder*/ - unsigned int index; /**< layers index*/ - unsigned int maxCnt; /**< layers count*/ }; /** diff --git a/display/composer/v1_2/DisplayComposerType.idl b/display/composer/v1_2/DisplayComposerType.idl index f1093525..5ec4cba8 100644 --- a/display/composer/v1_2/DisplayComposerType.idl +++ b/display/composer/v1_2/DisplayComposerType.idl @@ -92,4 +92,14 @@ enum DispCmd : ohos.hdi.display.composer.v1_0.DispCmd { enum DisplayPropertyID { DISPLAY_PROPERTY_ID_SKIP_VALIDATE = 1, DISPLAY_CAPBILITY_HARDWARE_CURSOR = 2, -}; \ No newline at end of file +}; + +/** + * @brief Defines hardware acceleration options. + * + */ + struct GfxOpt : ohos.hdi.display.composer.v1_0.GfxOpt { + unsigned int zorder; /**< layer zorder*/ + unsigned int index; /**< layers index*/ + unsigned int maxCnt; /**< layers count*/ +}; -- Gitee