From c23116180fc5379dc94f020e254c79a90f526866 Mon Sep 17 00:00:00 2001 From: lin-jianwu Date: Mon, 4 Dec 2023 20:00:11 +0800 Subject: [PATCH 1/3] sdk interface change Signed-off-by: lin-jianwu --- graphic/graphic_2d/native_window/external_window.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h index 1bcc71f4a77..e7e3b8c7b0e 100644 --- a/graphic/graphic_2d/native_window/external_window.h +++ b/graphic/graphic_2d/native_window/external_window.h @@ -357,11 +357,12 @@ int32_t OH_NativeWindow_NativeWindowFlushBuffer(OHNativeWindow *window, OHNative * @syscap SystemCapability.Graphic.Graphic2D.NativeWindow * @param window Indicates the pointer to a OHNativeWindow instance. * @param buffer Indicates the pointer to a OHNativeWindowBuffer pointer. + * @param fenceFd Indicates the pointer to a file descriptor handle. * @return Returns an error code, 0 is success, otherwise, failed. * @since 11 * @version 1.0 */ -int32_t OH_NativeWindow_GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer); +int32_t OH_NativeWindow_GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer, int *fenceFd); /** * @brief Returns the OHNativeWindowBuffer to the buffer queue through a OHNativeWindow instance, without filling in any content. The OHNativeWindowBuffer can be used for another request. -- Gitee From 9651b5d5cb3e00b0532c563f7d12f0cbe2a65e91 Mon Sep 17 00:00:00 2001 From: lin-jianwu Date: Mon, 4 Dec 2023 21:09:07 +0800 Subject: [PATCH 2/3] sdk interface change Signed-off-by: lin-jianwu --- graphic/graphic_2d/native_window/external_window.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h index e7e3b8c7b0e..5ce5c365021 100644 --- a/graphic/graphic_2d/native_window/external_window.h +++ b/graphic/graphic_2d/native_window/external_window.h @@ -358,11 +358,13 @@ int32_t OH_NativeWindow_NativeWindowFlushBuffer(OHNativeWindow *window, OHNative * @param window Indicates the pointer to a OHNativeWindow instance. * @param buffer Indicates the pointer to a OHNativeWindowBuffer pointer. * @param fenceFd Indicates the pointer to a file descriptor handle. + * @param matrix Indicates the retrieved 4*4 transform matrix. * @return Returns an error code, 0 is success, otherwise, failed. * @since 11 * @version 1.0 */ -int32_t OH_NativeWindow_GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer, int *fenceFd); +int32_t OH_NativeWindow_GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer, + int *fenceFd, float matrix[16]); /** * @brief Returns the OHNativeWindowBuffer to the buffer queue through a OHNativeWindow instance, without filling in any content. The OHNativeWindowBuffer can be used for another request. -- Gitee From 4a3650b6e7235df6d8df340d3aaa31884c8a8a20 Mon Sep 17 00:00:00 2001 From: lin-jianwu Date: Tue, 5 Dec 2023 09:16:45 +0800 Subject: [PATCH 3/3] sdk interface change Signed-off-by: lin-jianwu --- graphic/graphic_2d/native_window/external_window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphic/graphic_2d/native_window/external_window.h b/graphic/graphic_2d/native_window/external_window.h index 5ce5c365021..cd864aab16c 100644 --- a/graphic/graphic_2d/native_window/external_window.h +++ b/graphic/graphic_2d/native_window/external_window.h @@ -364,7 +364,7 @@ int32_t OH_NativeWindow_NativeWindowFlushBuffer(OHNativeWindow *window, OHNative * @version 1.0 */ int32_t OH_NativeWindow_GetLastFlushedBuffer(OHNativeWindow *window, OHNativeWindowBuffer **buffer, - int *fenceFd, float matrix[16]); + int *fenceFd, float matrix[16]); /** * @brief Returns the OHNativeWindowBuffer to the buffer queue through a OHNativeWindow instance, without filling in any content. The OHNativeWindowBuffer can be used for another request. -- Gitee