diff options
author | Greg Daniel <egdaniel@google.com> | 2017-04-25 13:44:00 -0400 |
---|---|---|
committer | Greg Daniel <egdaniel@google.com> | 2017-04-25 13:44:51 -0400 |
commit | 53a354365bcd0df5bb53e3cb582c3ac002095d84 (patch) | |
tree | e5c7dc693fd2138c4c1812d3c135f148ad62e9a3 /libs/hwui/renderthread/VulkanManager.cpp | |
parent | 75f22837575eaaeeee0eb86fb042b41d918aad9b (diff) |
Use new GrVkBackendContext::Create api
Test: manual testing
Change-Id: Ia8daebd2e028082a8b3d58f29057648746398735
Diffstat (limited to 'libs/hwui/renderthread/VulkanManager.cpp')
-rw-r--r-- | libs/hwui/renderthread/VulkanManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/VulkanManager.cpp b/libs/hwui/renderthread/VulkanManager.cpp index c2c2f2239c7f..a745320ca884 100644 --- a/libs/hwui/renderthread/VulkanManager.cpp +++ b/libs/hwui/renderthread/VulkanManager.cpp @@ -54,7 +54,8 @@ void VulkanManager::initialize() { auto canPresent = [](VkInstance, VkPhysicalDevice, uint32_t) { return true; }; - mBackendContext.reset(GrVkBackendContext::Create(&mPresentQueueIndex, canPresent)); + mBackendContext.reset(GrVkBackendContext::Create(vkGetInstanceProcAddr, vkGetDeviceProcAddr, + &mPresentQueueIndex, canPresent)); // Get all the addresses of needed vulkan functions VkInstance instance = mBackendContext->fInstance; |