From ae8b1d1991578a94fb6765b9e3422096e3fc7f8d Mon Sep 17 00:00:00 2001 From: lihui Date: Wed, 23 Oct 2024 16:08:29 +0800 Subject: [PATCH 1/2] Additional Interface Declaration Signed-off-by: lihui --- graphic/graphic_2d/native_window/external_window.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h index 54ae4efe5..339444ce3 100644 --- a/graphic/graphic_2d/native_window/external_window.h +++ b/graphic/graphic_2d/native_window/external_window.h @@ -142,24 +142,28 @@ typedef enum NativeWindowOperation { * set native window buffer stride, * variable parameter in function is * [in] int32_t stride. + * @deprecated since 14 */ SET_STRIDE, /** * get native window buffer stride, * variable parameter in function is * [out] int32_t *stride. + * @deprecated since 14 */ GET_STRIDE, /** * set native window buffer swap interval, * variable parameter in function is * [in] int32_t interval. + * @deprecated since 14 */ SET_SWAP_INTERVAL, /** * get native window buffer swap interval, * variable parameter in function is * [out] int32_t *interval. + * @deprecated since 14 */ GET_SWAP_INTERVAL, /** -- Gitee From 7107d57dff9fd5a90ed8425f0af658d717050181 Mon Sep 17 00:00:00 2001 From: lihui Date: Mon, 13 Jan 2025 17:13:30 +0800 Subject: [PATCH 2/2] deprecated GET_STRIDE/SET_STRIDE Signed-off-by: lihui --- graphic/graphic_2d/native_window/external_window.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h index 339444ce3..3a00aa699 100644 --- a/graphic/graphic_2d/native_window/external_window.h +++ b/graphic/graphic_2d/native_window/external_window.h @@ -142,28 +142,27 @@ typedef enum NativeWindowOperation { * set native window buffer stride, * variable parameter in function is * [in] int32_t stride. - * @deprecated since 14 + * @deprecated since 16 */ SET_STRIDE, /** * get native window buffer stride, * variable parameter in function is * [out] int32_t *stride. - * @deprecated since 14 + * @deprecated since 16 + * @useinstead {@link OH_NativeWindow_GetBufferHandleFromNative} and get stride from {@link BufferHandle} */ GET_STRIDE, /** * set native window buffer swap interval, * variable parameter in function is * [in] int32_t interval. - * @deprecated since 14 */ SET_SWAP_INTERVAL, /** * get native window buffer swap interval, * variable parameter in function is * [out] int32_t *interval. - * @deprecated since 14 */ GET_SWAP_INTERVAL, /** -- Gitee