#include "libANGLE/renderer/vulkan/android/vk_android_utils.h"
#include "common/android_util.h"
#include "libANGLE/renderer/vulkan/ContextVk.h"
#include "libANGLE/renderer/vulkan/vk_renderer.h"
#include "libANGLE/renderer/vulkan/vk_utils.h"
#if defined(ANGLE_PLATFORM_ANDROID)
# include "libANGLE/Display.h"
# include "libANGLE/renderer/vulkan/android/AHBFunctions.h"
# include "libANGLE/renderer/vulkan/android/DisplayVkAndroid.h"
#endif
namespace rx
{
namespace vk
{
namespace
{
#if defined(ANGLE_PLATFORM_ANDROID)
DisplayVkAndroid *GetDisplayVkAndroid(Renderer *renderer)
{
DisplayVk *displayVk = static_cast<DisplayVk *>(renderer->getGlobalOps());
return static_cast<DisplayVkAndroid *>(displayVk);
}
#endif
}
angle::Result GetClientBufferMemoryRequirements(Context *context,
const AHardwareBuffer *hardwareBuffer,
VkMemoryRequirements &memRequirements)
{ … }
angle::Result InitAndroidExternalMemory(Context *context,
EGLClientBuffer clientBuffer,
VkMemoryPropertyFlags memoryProperties,
Buffer *buffer,
VkMemoryPropertyFlags *memoryPropertyFlagsOut,
uint32_t *memoryTypeIndexOut,
DeviceMemory *deviceMemoryOut,
VkDeviceSize *sizeOut)
{ … }
void ReleaseAndroidExternalMemory(Renderer *renderer, EGLClientBuffer clientBuffer)
{ … }
}
}