diff --git a/graphic/graphic_2d/native_buffer/native_buffer.h b/graphic/graphic_2d/native_buffer/native_buffer.h index 5bf410f68..c059eeb33 100644 --- a/graphic/graphic_2d/native_buffer/native_buffer.h +++ b/graphic/graphic_2d/native_buffer/native_buffer.h @@ -267,7 +267,7 @@ uint32_t OH_NativeBuffer_GetSeqNum(OH_NativeBuffer *buffer); * @syscap SystemCapability.Graphic.Graphic2D.NativeBuffer * @param buffer Indicates the pointer to a OH_NativeBuffer instance. * @param colorSpace Indicates the color space of native buffer, see OH_NativeBuffer_ColorSpace. - * @return Returns the sequence number, which is unique for each OH_NativeBuffer. + * @return Returns an error code, 0 is success, otherwise, failed. * @since 11 * @version 1.0 */ diff --git a/graphic/graphic_2d/native_image/native_image.h b/graphic/graphic_2d/native_image/native_image.h index d020fb2d1..6e95ee635 100644 --- a/graphic/graphic_2d/native_image/native_image.h +++ b/graphic/graphic_2d/native_image/native_image.h @@ -57,7 +57,7 @@ typedef struct NativeWindow OHNativeWindow; typedef void (*OH_OnFrameAvailable)(void *context); /** - * @brief A listener for native image, use OH_NativeImage_SetOnFrameAvailableListener to register \n + * @brief A listener for OH_NativeImage, use OH_NativeImage_SetOnFrameAvailableListener to register \n * the listener object to OH_NativeImage, the callback will be triggered when there is available frame * * @since 11 @@ -65,9 +65,9 @@ typedef void (*OH_OnFrameAvailable)(void *context); */ typedef struct OH_OnFrameAvailableListener { - /** User defined context, returned to the user in the callback function*/ + /** User defined context, returned to the user in the callback function. */ void *context; - /** The callback function of frame available.*/ + /** The callback function of frame available. */ OH_OnFrameAvailable onFrameAvailable; } OH_OnFrameAvailableListener;