Revert "fix for GrVkGpu not always unreffing all command pools"
This reverts commit 15b83aa5d48713d30ce5826b4aae70651fb1dee0.
Reason for revert: breaking Windows
Original change's description:
> fix for GrVkGpu not always unreffing all command pools
>
> Bug: skia:
> Change-Id: I2a122aa25f5a8bedb413b2dca3b53637f8ddd604
> Reviewed-on: https://skia-review.googlesource.com/c/176975
> Reviewed-by: Greg Daniel <egdaniel@google.com>
> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
TBR=egdaniel@google.com,ethannicholas@google.com
Change-Id: Ic94d5cda1a7f597cc24ade7971a50a908f3bd853
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/c/177060
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp
index 99b4d12..2b54878 100644
--- a/src/gpu/vk/GrVkResourceProvider.cpp
+++ b/src/gpu/vk/GrVkResourceProvider.cpp
@@ -330,11 +330,6 @@
}
void GrVkResourceProvider::destroyResources(bool deviceLost) {
- SkTaskGroup* taskGroup = fGpu->getContext()->contextPriv().getTaskGroup();
- if (taskGroup) {
- taskGroup->wait();
- }
-
// Release all copy pipelines
for (int i = 0; i < fCopyPipelines.count(); ++i) {
fCopyPipelines[i]->unref(fGpu);
@@ -386,11 +381,6 @@
}
void GrVkResourceProvider::abandonResources() {
- SkTaskGroup* taskGroup = fGpu->getContext()->contextPriv().getTaskGroup();
- if (taskGroup) {
- taskGroup->wait();
- }
-
// Abandon all command pools
for (int i = 0; i < fActiveCommandPools.count(); ++i) {
SkASSERT(fActiveCommandPools[i]->unique());