mirror of
https://github.com/openharmony/interface_sdk_c.git
synced 2026-08-24 06:23:09 -04:00
sdk接口新增 Signed-off-by: m00472246 <majingtao1@huawei.com>
Signed-off-by: m00472246 <majingtao1@huawei.com>
This commit is contained in:
@@ -193,6 +193,13 @@ enum NativeWindowOperation {
|
||||
* [in] uint64_t uiTimestamp.
|
||||
*/
|
||||
SET_UI_TIMESTAMP,
|
||||
/**
|
||||
* get native window bufferqueue size,
|
||||
* variable parameter in function is
|
||||
* [out] int32_t *size.
|
||||
* @since 12
|
||||
*/
|
||||
GET_BUFFERQUEUE_SIZE,
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -496,6 +503,30 @@ int32_t OH_NativeWindow_NativeWindowSetMetaDataSet(OHNativeWindow *window, uint3
|
||||
*/
|
||||
int32_t OH_NativeWindow_NativeWindowSetTunnelHandle(OHNativeWindow *window, const OHExtDataHandle *handle);
|
||||
|
||||
/**
|
||||
* @brief Attach a buffer to an <b>OHNativeWindow</b> instance.
|
||||
*
|
||||
* @syscap SystemCapability.Graphic.Graphic2D.NativeWindow
|
||||
* @param window Indicates the pointer to an <b>OHNativeWindow</b> instance.
|
||||
* @param buffer Indicates the pointer to a <b>OHNativeWindowBuffer</b> instance.
|
||||
* @return Returns an error code, 0 is success, otherwise, failed.
|
||||
* @since 12
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_NativeWindow_NativeWindowAttachBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer);
|
||||
|
||||
/**
|
||||
* @brief Detach a buffer from an <b>OHNativeWindow</b> instance.
|
||||
*
|
||||
* @syscap SystemCapability.Graphic.Graphic2D.NativeWindow
|
||||
* @param window Indicates the pointer to an <b>OHNativeWindow</b> instance.
|
||||
* @param buffer Indicates the pointer to a <b>OHNativeWindowBuffer</b> instance.
|
||||
* @return Returns an error code, 0 is success, otherwise, failed.
|
||||
* @since 12
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_NativeWindow_NativeWindowDetachBuffer(OHNativeWindow *window, OHNativeWindowBuffer *buffer);
|
||||
|
||||
/**
|
||||
* @brief Get surfaceId from native window.
|
||||
*
|
||||
|
||||
@@ -18,5 +18,7 @@
|
||||
{ "name": "OH_NativeWindow_NativeWindowSetMetaDataSet" },
|
||||
{ "name": "OH_NativeWindow_NativeWindowSetTunnelHandle" },
|
||||
{ "name": "OH_NativeWindow_GetSurfaceId"},
|
||||
{ "name": "OH_NativeWindow_CreateNativeWindowFromSurfaceId"}
|
||||
{ "name": "OH_NativeWindow_CreateNativeWindowFromSurfaceId"},
|
||||
{ "name": "OH_NativeWindow_NativeWindowAttachBuffer" },
|
||||
{ "name": "OH_NativeWindow_NativeWindowDetachBuffer" }
|
||||
]
|
||||
Reference in New Issue
Block a user