mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-27 08:51:29 +00:00
回退api 13
Signed-off-by: lihui <lihui359@huawei.com>
This commit is contained in:
parent
3878eafb80
commit
8ffd47fc9e
@ -22,13 +22,5 @@
|
||||
{
|
||||
"first_introduced": "12",
|
||||
"name": "OH_ConsumerSurface_Create"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_ConsumerSurface_SetDefaultUsage"
|
||||
},
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_ConsumerSurface_SetDefaultSize"
|
||||
}
|
||||
]
|
@ -279,34 +279,6 @@ int32_t OH_NativeImage_ReleaseNativeWindowBuffer(OH_NativeImage* image,
|
||||
*/
|
||||
OH_NativeImage* OH_ConsumerSurface_Create();
|
||||
|
||||
/**
|
||||
* @brief Set the default usage of the <b>OH_NativeImage</b>.\n
|
||||
* This interface dose not support concurrency.\n
|
||||
*
|
||||
* @syscap SystemCapability.Graphic.Graphic2D.NativeImage
|
||||
* @param image Indicates the pointer to a <b>OH_NativeImage</b> instance.
|
||||
* @param usage Indicates the usage of the <b>OH_NativeImage</b>.Refer to the enum <b>OH_NativeBuffer_Usage</b>.
|
||||
* @return {@link NATIVE_ERROR_OK} 0 - Success.
|
||||
* {@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - image is NULL.
|
||||
* @since 13
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_ConsumerSurface_SetDefaultUsage(OH_NativeImage* image, uint64_t usage);
|
||||
|
||||
/**
|
||||
* @brief Set the default size of the <b>OH_NativeImage</b>.\n
|
||||
* This interface dose not support concurrency.\n
|
||||
*
|
||||
* @syscap SystemCapability.Graphic.Graphic2D.NativeImage
|
||||
* @param image Indicates the pointer to a <b>OH_NativeImage</b> instance.
|
||||
* @param width Indicates the width of the <b>OH_NativeImage</b>, and it should be greater than 0.
|
||||
* @param height Indicates the height of the <b>OH_NativeImage</b>, and it should be greater than 0.
|
||||
* @return {@link NATIVE_ERROR_OK} 0 - Success.
|
||||
* {@link NATIVE_ERROR_INVALID_ARGUMENTS} 40001000 - image is NULL or width, height less than or equal to 0.
|
||||
* @since 13
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_ConsumerSurface_SetDefaultSize(OH_NativeImage* image, int32_t width, int32_t height);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user