Wait for all device work to finish before destroy VkDevice
authoregdaniel <egdaniel@google.com>
Mon, 11 Apr 2016 20:41:51 +0000 (13:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 Apr 2016 20:41:52 +0000 (13:41 -0700)
commitf4ace41dd9590944c9d4f9e3d1c576914db7af18
tree1d30d0c0cc52e5eb8c3d4ce8b828881d1874db61
parentc14b978613c663b97ff0b08e0013dc72bb66d46d
Wait for all device work to finish before destroy VkDevice

Currently before destroying the GrVkGpu, we do wait on all queue work to finish before destroying objects there.
Since we only have one queue, the vkDeviceWaitIdle added here is probably not necessary, but the spec does suggest
having it just to make sure all work is fully done on the device.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1876863004

Review URL: https://codereview.chromium.org/1876863004
src/gpu/vk/GrVkBackendContext.cpp