!1460 native window枚举注释补充

Merge pull request !1460 from 李辉/PTS0919
This commit is contained in:
openharmony_ci 2024-09-20 07:15:51 +00:00 committed by Gitee
commit d1f578283c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -254,8 +254,15 @@ typedef enum NativeWindowOperation {
*/
SET_SDR_WHITE_POINT_BRIGHTNESS,
/**
* set native window buffer desiredPresentTimestamp,
* variable parameter in function is
* Set native window buffer desiredPresentTimestamp, indicates the desired time to present the buffer.\n
* Which should be generated by std::chrono::steady_clock in nanoseconds.\n
* It is only effective when RenderService is the consumer.\n
* The buffer will wait until desiredPresentTimestamp is reached before being consumed and displayed.\n
* If multiple buffers reach desiredPresentTimestamp, the earlier buffer will be dropped.\n
* This Operation should be called before calling <b>OH_NativeWindow_NativeWindowFlushBuffer</b>.\n
* If desiredPresentTimestamp is greater than 1 second of the consumer-provided timestamp,
* the desiredPresentTimestamp will be ignored.\n
* Variable parameter in function is
* [in] int64_t desiredPresentTimestamp.
* @since 13
*/