From 06d04531d122ca943d45bb5e975917d16558c7e0 Mon Sep 17 00:00:00 2001 From: lvshiqi Date: Thu, 15 Aug 2024 12:10:15 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E5=BC=82=E6=AD=A5=E7=BB=98=E5=88=B6ndk?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lvshiqi Change-Id: I8dcab114f8cfe30cfc55ba4f4e410ea1fdf00705 --- graphic/graphic_2d/native_drawing/BUILD.gn | 2 + .../native_drawing/drawing_canvas.h | 15 +++ .../native_drawing/drawing_record_cmd.h | 121 ++++++++++++++++++ .../graphic_2d/native_drawing/drawing_types.h | 15 +++ .../native_drawing/libnative_drawing.ndk.json | 24 ++++ 5 files changed, 177 insertions(+) create mode 100644 graphic/graphic_2d/native_drawing/drawing_record_cmd.h diff --git a/graphic/graphic_2d/native_drawing/BUILD.gn b/graphic/graphic_2d/native_drawing/BUILD.gn index fa8656ce6..068299ea5 100644 --- a/graphic/graphic_2d/native_drawing/BUILD.gn +++ b/graphic/graphic_2d/native_drawing/BUILD.gn @@ -39,6 +39,7 @@ ohos_ndk_headers("native_drawing_header") { "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_pen.h", "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_pixel_map.h", "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_point.h", + "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_record_cmd.h", "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_rect.h", "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_region.h", "//interface/sdk_c/graphic/graphic_2d/native_drawing/drawing_register_font.h", @@ -96,5 +97,6 @@ ohos_ndk_library("libnative_drawing_ndk") { "native_drawing/drawing_text_typography.h", "native_drawing/drawing_typeface.h", "native_drawing/drawing_types.h", + "native_drawing/drawing_record_cmd.h", ] } diff --git a/graphic/graphic_2d/native_drawing/drawing_canvas.h b/graphic/graphic_2d/native_drawing/drawing_canvas.h index 4d1e8a0fa..e852a5e21 100644 --- a/graphic/graphic_2d/native_drawing/drawing_canvas.h +++ b/graphic/graphic_2d/native_drawing/drawing_canvas.h @@ -828,6 +828,21 @@ OH_Drawing_ErrorCode OH_Drawing_CanvasIsClipEmpty(OH_Drawing_Canvas* canvas, boo */ OH_Drawing_ErrorCode OH_Drawing_CanvasGetImageInfo(OH_Drawing_Canvas* canvas, OH_Drawing_Image_Info* imageInfo); +/** + * @brief Replay drawing commands. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param OH_Drawing_Canvas Indicates the pointer to an OH_Drawing_Canvas object. + * @param OH_Drawing_RecordCmd Indicates the pointer to an OH_Drawing_RecordCmd object. + * @param OH_Drawing_Matrix Indicates the pointer to an OH_Drawing_Matrix object, can be nullptr. + * @param OH_Drawing_Brush Indicates the pointer to an OH_Drawing_Brush object, can be nullptr. + * @return Returns the error code. + * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or imageInfo is nullptr. + * @since 12 + * @version 1.0 + */ +OH_Drawing_ErrorCode OH_Drawing_Drawing_CanvasDrawRecordCmd(OH_Drawing_Canvas*, const OH_Drawing_RecordCmd*); #ifdef __cplusplus } #endif diff --git a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h new file mode 100644 index 000000000..7489cbec7 --- /dev/null +++ b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef C_INCLUDE_DRAWING_RECORD_CMD_H +#define C_INCLUDE_DRAWING_RECORD_CMD_H + +/** + * @addtogroup Drawing + * @{ + * + * @brief Provides functions such as 2D graphics rendering, text drawing, and image display. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * + * @since 12 + * @version 1.0 + */ + +/** + * @file drawing_record_cmd.h + * + * @brief Declares functions related to the RecordCmd object in the drawing module. + * + * @library libnative_drawing.so + * @since 12 + * @version 1.0 + */ + +#include "drawing_types.h" +#include "drawing_error_code.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * @brief Creates an OH_Drawing_RecordCmdUtils object. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. + * @return Returns the error code. + * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. + * @since 12 + * @version 1.0 + */ +OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsCreate(OH_Drawing_RecordCmdUtils**); + +/** + * @brief Destroy an OH_Drawing_RecordCmdUtils object. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. + * @return Returns the error code. + * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. + * @since 12 + * @version 1.0 + */ +OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy(OH_Drawing_RecordCmdUtils*); + +/** + * @brief Returns the canvas that records the drawing commands. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. + * @param OH_Drawing_Rect Indicates the pointer to an OH_Drawing_Rect object. + * @param OH_Drawing_Canvas Indicates the pointer to an OH_Drawing_Canvas object. + * @return Returns the error code. + * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. + * @since 12 + * @version 1.0 + */ + OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsBeginRecording(OH_Drawing_RecordCmdUtils*, + int32_t width, int32_t height, OH_Drawing_Canvas**); + +/** + * @brief Finish the recording process of the drawing recorder and obtain the recorded drawing object. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. + * @param OH_Drawing_RecordCmd Indicates the pointer to an OH_Drawing_RecordCmdUtils object. + * @return Returns the error code. + * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. + * @since 12 + * @version 1.0 + */ +OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsFinishingRecording(OH_Drawing_RecordCmdUtils*, OH_Drawing_RecordCmd**); + +/** + * @brief Destroy an OH_Drawing_RecordCmd object. + * + * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing + * @param OH_Drawing_RecordCmd Indicates the pointer to an OH_Drawing_RecordCmd object. + * @return Returns the error code. + * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. + * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. + * @since 12 + * @version 1.0 + */ +OH_Drawing_ErrorCode OH_Drawing_RecordCmdDestroy(OH_Drawing_RecordCmd*); + +#ifdef __cplusplus +} +#endif +/** @} */ +#endif \ No newline at end of file diff --git a/graphic/graphic_2d/native_drawing/drawing_types.h b/graphic/graphic_2d/native_drawing/drawing_types.h index edcc71cb8..698514bfe 100644 --- a/graphic/graphic_2d/native_drawing/drawing_types.h +++ b/graphic/graphic_2d/native_drawing/drawing_types.h @@ -502,6 +502,21 @@ typedef struct OH_Drawing_FontMgr OH_Drawing_FontMgr; */ typedef struct OH_Drawing_FontStyleSet OH_Drawing_FontStyleSet; +/** + * @brief Define OH_Drawing_RecordCmdUtils, which is used to replay drawing commands. + * + * @since 12 + * @version 1.0 + */ +typedef struct OH_Drawing_RecordCmdUtils OH_Drawing_RecordCmdUtils; + +/** + * @brief Define OH_Drawing_RecordCmd, which is used to replay drawing commands. + * + * @since 12 + * @version 1.0 + */ +typedef struct OH_Drawing_RecordCmd OH_Drawing_RecordCmd; #ifdef __cplusplus } #endif diff --git a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json index 37535bc2b..f8f6fbbca 100644 --- a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json +++ b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json @@ -1453,5 +1453,29 @@ { "first_introduced": "12", "name":"OH_Drawing_SetTextShadow" + }, + { + "first_introduced": "12", + "name":"OH_Drawing_Drawing_CanvasDrawRecordCmd" + }, + { + "first_introduced": "12", + "name":"OH_Drawing_RecordCmdUtilsCreate" + }, + { + "first_introduced": "12", + "name":"OH_Drawing_RecordCmdUtilsDestroy" + }, + { + "first_introduced": "12", + "name":"OH_Drawing_RecordCmdUtilsBeginRecording" + }, + { + "first_introduced": "12", + "name":"OH_Drawing_RecordCmdUtilsFinishingRecording" + }, + { + "first_introduced": "12", + "name":"OH_Drawing_RecordCmdDestroy" } ] \ No newline at end of file -- Gitee From ab789ae474a1f8d551f6061115d493795f824ce1 Mon Sep 17 00:00:00 2001 From: lvshiqi Date: Thu, 15 Aug 2024 14:52:15 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E5=BC=82=E6=AD=A5=E7=BB=98=E5=88=B6?= =?UTF-8?q?=E7=9A=84ndk=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lvshiqi Change-Id: Ic1bda7b3c6c75a2668618878f5eb3d9b908214cf --- graphic/graphic_2d/native_drawing/drawing_record_cmd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h index 7489cbec7..638bac0b4 100644 --- a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h +++ b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h @@ -76,7 +76,8 @@ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy(OH_Drawing_RecordCmdUtils* * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. - * @param OH_Drawing_Rect Indicates the pointer to an OH_Drawing_Rect object. + * @param width Width of rectangular object. + * @param height Height of rectangular object. * @param OH_Drawing_Canvas Indicates the pointer to an OH_Drawing_Canvas object. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. -- Gitee From 4da2bd65f4ab9a21991cacebff411a4dae634977 Mon Sep 17 00:00:00 2001 From: lvshiqi Date: Fri, 16 Aug 2024 11:19:01 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lvshiqi Change-Id: Ie76b583cd9a1b79a095b2c7190351e7b252cdf7c --- graphic/graphic_2d/native_drawing/drawing_record_cmd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h index 638bac0b4..1d65d8bdb 100644 --- a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h +++ b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h @@ -49,7 +49,7 @@ extern "C" { * @brief Creates an OH_Drawing_RecordCmdUtils object. * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing - * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. + * @param OH_Drawing_RecordCmdUtils** Indicates the pointer to an OH_Drawing_RecordCmdUtils object. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. @@ -78,7 +78,7 @@ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy(OH_Drawing_RecordCmdUtils* * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. * @param width Width of rectangular object. * @param height Height of rectangular object. - * @param OH_Drawing_Canvas Indicates the pointer to an OH_Drawing_Canvas object. + * @param OH_Drawing_Canvas** Indicates the pointer to an OH_Drawing_Canvas object. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. @@ -93,7 +93,7 @@ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy(OH_Drawing_RecordCmdUtils* * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * @param OH_Drawing_RecordCmdUtils Indicates the pointer to an OH_Drawing_RecordCmdUtils object. - * @param OH_Drawing_RecordCmd Indicates the pointer to an OH_Drawing_RecordCmdUtils object. + * @param OH_Drawing_RecordCmd** Indicates the pointer to an OH_Drawing_RecordCmd object. * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. -- Gitee From b9e181d30fafc4f295e05378cd7270c4f1a58914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BC=9F?= Date: Tue, 20 Aug 2024 12:34:26 +0000 Subject: [PATCH 4/8] update graphic/graphic_2d/native_drawing/drawing_canvas.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘伟 --- graphic/graphic_2d/native_drawing/drawing_canvas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_canvas.h b/graphic/graphic_2d/native_drawing/drawing_canvas.h index e852a5e21..aee44f416 100644 --- a/graphic/graphic_2d/native_drawing/drawing_canvas.h +++ b/graphic/graphic_2d/native_drawing/drawing_canvas.h @@ -839,7 +839,7 @@ OH_Drawing_ErrorCode OH_Drawing_CanvasGetImageInfo(OH_Drawing_Canvas* canvas, OH * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or imageInfo is nullptr. - * @since 12 + * @since 13 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_Drawing_CanvasDrawRecordCmd(OH_Drawing_Canvas*, const OH_Drawing_RecordCmd*); -- Gitee From 927188cc39fa18fbf2613d28a2c5571def2e55d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BC=9F?= Date: Tue, 20 Aug 2024 12:35:39 +0000 Subject: [PATCH 5/8] update graphic/graphic_2d/native_drawing/drawing_record_cmd.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘伟 --- graphic/graphic_2d/native_drawing/drawing_record_cmd.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h index 1d65d8bdb..dc781354b 100644 --- a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h +++ b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h @@ -53,7 +53,7 @@ extern "C" { * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. - * @since 12 + * @since 13 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsCreate(OH_Drawing_RecordCmdUtils**); @@ -66,7 +66,7 @@ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsCreate(OH_Drawing_RecordCmdUtils** * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. - * @since 12 + * @since 13 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy(OH_Drawing_RecordCmdUtils*); @@ -82,7 +82,7 @@ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy(OH_Drawing_RecordCmdUtils* * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. - * @since 12 + * @since 13 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsBeginRecording(OH_Drawing_RecordCmdUtils*, @@ -97,7 +97,7 @@ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsDestroy(OH_Drawing_RecordCmdUtils* * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. - * @since 12 + * @since 13 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsFinishingRecording(OH_Drawing_RecordCmdUtils*, OH_Drawing_RecordCmd**); @@ -110,7 +110,7 @@ OH_Drawing_ErrorCode OH_Drawing_RecordCmdUtilsFinishingRecording(OH_Drawing_Reco * @return Returns the error code. * Returns {@link OH_DRAWING_SUCCESS} if the operation is successful. * Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr. - * @since 12 + * @since 13 * @version 1.0 */ OH_Drawing_ErrorCode OH_Drawing_RecordCmdDestroy(OH_Drawing_RecordCmd*); -- Gitee From f24be39161ff362a270b9911f724812434da15be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BC=9F?= Date: Tue, 20 Aug 2024 12:36:06 +0000 Subject: [PATCH 6/8] update graphic/graphic_2d/native_drawing/drawing_types.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘伟 --- graphic/graphic_2d/native_drawing/drawing_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_types.h b/graphic/graphic_2d/native_drawing/drawing_types.h index 698514bfe..8c4488568 100644 --- a/graphic/graphic_2d/native_drawing/drawing_types.h +++ b/graphic/graphic_2d/native_drawing/drawing_types.h @@ -505,7 +505,7 @@ typedef struct OH_Drawing_FontStyleSet OH_Drawing_FontStyleSet; /** * @brief Define OH_Drawing_RecordCmdUtils, which is used to replay drawing commands. * - * @since 12 + * @since 13 * @version 1.0 */ typedef struct OH_Drawing_RecordCmdUtils OH_Drawing_RecordCmdUtils; @@ -513,7 +513,7 @@ typedef struct OH_Drawing_RecordCmdUtils OH_Drawing_RecordCmdUtils; /** * @brief Define OH_Drawing_RecordCmd, which is used to replay drawing commands. * - * @since 12 + * @since 13 * @version 1.0 */ typedef struct OH_Drawing_RecordCmd OH_Drawing_RecordCmd; -- Gitee From cd36899e62f1d2c18ed3d8b6c360f764f256b222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BC=9F?= Date: Tue, 20 Aug 2024 12:36:45 +0000 Subject: [PATCH 7/8] update graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘伟 --- .../native_drawing/libnative_drawing.ndk.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json index f8f6fbbca..777c35639 100644 --- a/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json +++ b/graphic/graphic_2d/native_drawing/libnative_drawing.ndk.json @@ -1455,27 +1455,27 @@ "name":"OH_Drawing_SetTextShadow" }, { - "first_introduced": "12", + "first_introduced": "13", "name":"OH_Drawing_Drawing_CanvasDrawRecordCmd" }, { - "first_introduced": "12", + "first_introduced": "13", "name":"OH_Drawing_RecordCmdUtilsCreate" }, { - "first_introduced": "12", + "first_introduced": "13", "name":"OH_Drawing_RecordCmdUtilsDestroy" }, { - "first_introduced": "12", + "first_introduced": "13", "name":"OH_Drawing_RecordCmdUtilsBeginRecording" }, { - "first_introduced": "12", + "first_introduced": "13", "name":"OH_Drawing_RecordCmdUtilsFinishingRecording" }, { - "first_introduced": "12", + "first_introduced": "13", "name":"OH_Drawing_RecordCmdDestroy" } ] \ No newline at end of file -- Gitee From 50f5e7d678c5656f065d4cdcd414ef5b22db3472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BC=9F?= Date: Wed, 21 Aug 2024 07:38:36 +0000 Subject: [PATCH 8/8] update graphic/graphic_2d/native_drawing/drawing_record_cmd.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 刘伟 --- graphic/graphic_2d/native_drawing/drawing_record_cmd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h index dc781354b..0b275ffc8 100644 --- a/graphic/graphic_2d/native_drawing/drawing_record_cmd.h +++ b/graphic/graphic_2d/native_drawing/drawing_record_cmd.h @@ -24,7 +24,7 @@ * * @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing * - * @since 12 + * @since 13 * @version 1.0 */ @@ -34,7 +34,7 @@ * @brief Declares functions related to the RecordCmd object in the drawing module. * * @library libnative_drawing.so - * @since 12 + * @since 13 * @version 1.0 */ -- Gitee