From 6a3508f8c7cb83a371ba00c5564776cab4fe8dc8 Mon Sep 17 00:00:00 2001 From: lihui Date: Fri, 20 Jun 2025 16:43:52 +0800 Subject: [PATCH] fix native fence system cap Signed-off-by: lihui --- graphic/graphic_2d/native_fence/BUILD.gn | 2 +- graphic/graphic_2d/native_fence/native_fence.h | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/graphic/graphic_2d/native_fence/BUILD.gn b/graphic/graphic_2d/native_fence/BUILD.gn index 920b8d47d..11030efb9 100755 --- a/graphic/graphic_2d/native_fence/BUILD.gn +++ b/graphic/graphic_2d/native_fence/BUILD.gn @@ -24,6 +24,6 @@ ohos_ndk_library("libnative_fence_ndk") { output_name = "native_fence" output_extension = "so" ndk_description_file = "./libnative_fence.ndk.json" - system_capability = "SystemCapability.Graphic.Graphic2D.NativeFence" + system_capability = "SystemCapability.Graphic.Graphic2D.NativeWindow" system_capability_headers = [ "native_fence/native_fence.h" ] } diff --git a/graphic/graphic_2d/native_fence/native_fence.h b/graphic/graphic_2d/native_fence/native_fence.h index e0d6dd9a7..352ea726d 100755 --- a/graphic/graphic_2d/native_fence/native_fence.h +++ b/graphic/graphic_2d/native_fence/native_fence.h @@ -19,7 +19,6 @@ * * @brief Provides the native fence capability * - * @syscap SystemCapability.Graphic.Graphic2D.NativeFence * @since 20 * @version 1.0 */ @@ -31,7 +30,7 @@ * * @kit ArkGraphics2D * @library libnative_fence.so - * @syscap SystemCapability.Graphic.Graphic2D.NativeFence + * @syscap SystemCapability.Graphic.Graphic2D.NativeWindow * @since 20 * @version 1.0 */ @@ -48,7 +47,6 @@ extern "C" { /** * @brief Checks if the fenceFd is valid. * - * @syscap SystemCapability.Graphic.Graphic2D.NativeFence * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization. * @return Returns true if the fenceFd is valid. * Returns false if the fenceFd is a negative integer. @@ -61,7 +59,6 @@ bool OH_NativeFence_IsValid(int fenceFd); * @brief Waits for a fence signal. The maximum waiting time is determined by the timeout parameter. * The incoming fenceFd needs to be closed by the user themselves. * - * @syscap SystemCapability.Graphic.Graphic2D.NativeFence * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization. * @param timeout Indicates the timeout duration. * The unit is milliseconds, -1 represents permanent waiting, 0 represents immediate return. @@ -81,7 +78,6 @@ bool OH_NativeFence_Wait(int fenceFd, uint32_t timeout); * @brief Waits forever for a fence signal. * The incoming fenceFd needs to be closed by the user themselves. * - * @syscap SystemCapability.Graphic.Graphic2D.NativeFence * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization. * @return Returns true if the fence signaled. * Returns false in the following cases: @@ -96,7 +92,6 @@ bool OH_NativeFence_WaitForever(int fenceFd); /** * @brief Close the fenceFd. * - * @syscap SystemCapability.Graphic.Graphic2D.NativeFence * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization. * This value is a non negative integer. * @since 20 -- Gitee