Remove extra Vulkan submitCommandBuffer from deleteTestingOnlyBackendTexture
Change-Id: I6e2fd012d1c2af72a34be2d1971e210d7373fe21
Reviewed-on: https://skia-review.googlesource.com/120080
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp
index 855232b..0d45ae0 100644
--- a/src/gpu/vk/GrVkGpu.cpp
+++ b/src/gpu/vk/GrVkGpu.cpp
@@ -1543,8 +1543,6 @@
GrVkImageInfo info;
if (tex.getVkImageInfo(&info)) {
- // something in the command buffer may still be using this, so force submit
- this->submitCommandBuffer(kForce_SyncQueue);
GrVkImage::DestroyImageInfo(this, const_cast<GrVkImageInfo*>(&info));
}
}
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp
index aa23998..f2e0083 100644
--- a/tests/SurfaceTest.cpp
+++ b/tests/SurfaceTest.cpp
@@ -1033,6 +1033,7 @@
context->flush();
GrGpu* gpu = context->contextPriv().getGpu();
+ gpu->testingOnly_flushGpuAndSync();
for (auto backendTex : backendTextures) {
gpu->deleteTestingOnlyBackendTexture(backendTex);
}