diff --git a/graphic/graphic_2d/native_fence/BUILD.gn b/graphic/graphic_2d/native_fence/BUILD.gn index 920b8d47d7fa2868bf5750fc9123cbc53fae255d..11030efb93e821e25ee443be79fd3ac5556035c8 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 e0d6dd9a7c3e0fd5d862c09df743b78d9707828c..352ea726dc445e6d0cd3ab14428d29dfc8927fae 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