From 302c3a4042ae43de0ce4db36c1243e10fa36c2fa Mon Sep 17 00:00:00 2001 From: m00472246 Date: Sat, 29 Jun 2024 09:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=BA=9F=E5=BC=83=20Signed-o?= =?UTF-8?q?ff-by:=20m00472246=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: m00472246 --- graphic/graphic_2d/native_image/native_image.h | 4 ++-- graphic/graphic_2d/native_window/external_window.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/graphic/graphic_2d/native_image/native_image.h b/graphic/graphic_2d/native_image/native_image.h index 77577ff3f6d..cff0a7c8653 100644 --- a/graphic/graphic_2d/native_image/native_image.h +++ b/graphic/graphic_2d/native_image/native_image.h @@ -84,8 +84,7 @@ typedef struct OH_OnFrameAvailableListener { OH_NativeImage* OH_NativeImage_Create(uint32_t textureId, uint32_t textureTarget); /** - * @brief Acquire the OHNativeWindow for the OH_NativeImage. This OHNativeWindow should be released by \n - * OH_NativeWindow_DestroyNativeWindow when no longer needed. + * @brief Acquire the OHNativeWindow for the OH_NativeImage. * * @syscap SystemCapability.Graphic.Graphic2D.NativeImage * @param image Indicates the pointer to a OH_NativeImage instance. @@ -152,6 +151,7 @@ int64_t OH_NativeImage_GetTimestamp(OH_NativeImage* image); * @return Returns an error code, 0 is success, otherwise, failed. * @since 9 * @version 1.0 + * @deprecated since 12 */ int32_t OH_NativeImage_GetTransformMatrix(OH_NativeImage* image, float matrix[16]); diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h index 46ad93b5851..1bb1c36fd1f 100644 --- a/graphic/graphic_2d/native_window/external_window.h +++ b/graphic/graphic_2d/native_window/external_window.h @@ -391,6 +391,7 @@ typedef enum { * @return Returns the pointer to the OHNativeWindow instance created. * @since 8 * @version 1.0 + * @deprecated since 12 */ OHNativeWindow* OH_NativeWindow_CreateNativeWindow(void* pSurface); @@ -412,6 +413,7 @@ void OH_NativeWindow_DestroyNativeWindow(OHNativeWindow* window); * @return Returns the pointer to the OHNativeWindowBuffer instance created. * @since 8 * @version 1.0 + * @deprecated since 12 */ OHNativeWindowBuffer* OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer(void* pSurfaceBuffer); @@ -477,6 +479,7 @@ int32_t OH_NativeWindow_NativeWindowFlushBuffer(OHNativeWindow *window, OHNative * @return Returns an error code, 0 is success, otherwise, failed. * @since 11 * @version 1.0 + * @deprecated since 12 */ int32_t OH_NativeWindow_GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer, int *fenceFd, float matrix[16]); -- Gitee