!15 revert old interface

Merge pull request !15 from shegangbin/revertOldInterface
This commit is contained in:
openharmony_ci 2023-10-24 01:51:24 +00:00 committed by Gitee
commit 4235623e06
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -70,43 +70,11 @@ typedef struct VkPhysicalDevicePresentationPropertiesOHOS {
VkBool32 sharedImage;
} VkPhysicalDevicePresentationPropertiesOHOS;
/**
* @brief this type is deprecated, please use PFN_vkAcquireImageOHOS instead
* @deprecated
*/
typedef VkResult (VKAPI_PTR *PFN_vkSetNativeFenceFdOpenHarmony)(VkDevice device, int32_t nativeFenceFd, VkSemaphore semaphore, VkFence fence);
/**
* @brief this type is deprecated, please use PFN_vkQueueSignalReleaseImageOHOS instead
* @deprecated
*/
typedef VkResult (VKAPI_PTR *PFN_vkGetNativeFenceFdOpenHarmony)(VkQueue queue, uint32_t waitSemaphoreCount, const VkSemaphore* pWaitSemaphores, VkImage image, int32_t* pNativeFenceFd);
typedef VkResult (VKAPI_PTR *PFN_vkGetSwapchainGrallocUsageOHOS)(VkDevice device, VkFormat format, VkImageUsageFlags imageUsage, uint64_t* grallocUsage);
typedef VkResult (VKAPI_PTR *PFN_vkAcquireImageOHOS)(VkDevice device, VkImage image, int32_t nativeFenceFd, VkSemaphore semaphore, VkFence fence);
typedef VkResult (VKAPI_PTR *PFN_vkQueueSignalReleaseImageOHOS)(VkQueue queue, uint32_t waitSemaphoreCount, const VkSemaphore* pWaitSemaphores, VkImage image, int32_t* pNativeFenceFd);
#ifndef VK_NO_PROTOTYPES
/**
* @brief this interface is deprecated, please use vkAcquireImageOHOS instead
* @deprecated
*/
VKAPI_ATTR VkResult VKAPI_CALL vkSetNativeFenceFdOpenHarmony(
VkDevice device,
int32_t nativeFenceFd,
VkSemaphore semaphore,
VkFence fence);
/**
* @brief this interface is deprecated, please use vkQueueSignalReleaseImageOHOS instead
* @deprecated
*/
VKAPI_ATTR VkResult VKAPI_CALL vkGetNativeFenceFdOpenHarmony(
VkQueue queue,
uint32_t waitSemaphoreCount,
const VkSemaphore* pWaitSemaphores,
VkImage image,
int32_t* pNativeFenceFd);
VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainGrallocUsageOHOS(
VkDevice device,
VkFormat format,