From cdeaf0171a155f8c0dda977f493ec42a503024b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BE=89?= Date: Fri, 28 Mar 2025 08:34:47 +0000 Subject: [PATCH] fix gn format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李辉 Change-Id: I370ebdf6bc92db2b3a38fcd2e356c78d4aed9a27 --- graphic/graphic_2d/native_buffer/native_buffer.h | 4 ++-- graphic/graphic_2d/native_fence/BUILD.gn | 8 ++------ graphic/graphic_2d/native_fence/native_fence.h | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/graphic/graphic_2d/native_buffer/native_buffer.h b/graphic/graphic_2d/native_buffer/native_buffer.h index 734fdc04b..771256ac5 100644 --- a/graphic/graphic_2d/native_buffer/native_buffer.h +++ b/graphic/graphic_2d/native_buffer/native_buffer.h @@ -209,12 +209,12 @@ typedef enum OH_NativeBuffer_Format { */ NATIVEBUFFER_PIXEL_FMT_RGBA16_FLOAT, /** - * RGBA16 Y8 format + * Y8 format * @since 20 */ NATIVEBUFFER_PIXEL_FMT_Y8 = 40, /** - * RGBA16 Y16 format + * Y16 format * @since 20 */ NATIVEBUFFER_PIXEL_FMT_Y16 = 41, diff --git a/graphic/graphic_2d/native_fence/BUILD.gn b/graphic/graphic_2d/native_fence/BUILD.gn index 7709bc1e4..ac784db3d 100644 --- a/graphic/graphic_2d/native_fence/BUILD.gn +++ b/graphic/graphic_2d/native_fence/BUILD.gn @@ -16,9 +16,7 @@ import("//build/ohos/ndk/ndk.gni") ohos_ndk_headers("native_fence_header") { dest_dir = "$ndk_headers_out_dir/native_fence" - sources = [ - "./native_fence.h", - ] + sources = [ "./native_fence.h" ] } ohos_ndk_library("libnative_fence_ndk") { @@ -26,7 +24,5 @@ ohos_ndk_library("libnative_fence_ndk") { output_extension = "so" ndk_description_file = "./libnative_fence.ndk.json" system_capability = "SystemCapability.Graphic.Graphic2D.NativeFence" - system_capability_headers = [ - "native_fence/native_fence.h", - ] + 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 c43d9c4a5..25b8f1201 100644 --- a/graphic/graphic_2d/native_fence/native_fence.h +++ b/graphic/graphic_2d/native_fence/native_fence.h @@ -49,7 +49,7 @@ extern "C" { * * @syscap SystemCapability.Graphic.Graphic2D.NativeFence * @param fenceFd Indicates a file descriptor handle, which is used for timing synchronization. - * @return Returns true means the fence is valid, otherwise, invalid. + * @return Returns true if the fence is valid, otherwise, invalid. * @since 20 * @version 1.0 */ -- Gitee