Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: src/gpu/vk/GrVkBackendContext.cpp

Issue 1876863004: Wait for all device work to finish before destroy VkDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkBackendContext.cpp
diff --git a/src/gpu/vk/GrVkBackendContext.cpp b/src/gpu/vk/GrVkBackendContext.cpp
index 9506da554648bbbe064a60ad81b032840f42a20a..f5cd08ca8b4f115be18f116baab07663d1c620c5 100644
--- a/src/gpu/vk/GrVkBackendContext.cpp
+++ b/src/gpu/vk/GrVkBackendContext.cpp
@@ -238,6 +238,7 @@ const GrVkBackendContext* GrVkBackendContext::Create() {
}
GrVkBackendContext::~GrVkBackendContext() {
+ vkDeviceWaitIdle(fDevice);
vkDestroyDevice(fDevice, nullptr);
fDevice = VK_NULL_HANDLE;
vkDestroyInstance(fInstance, nullptr);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698