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

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

Issue 2128273002: Only check resource tracking on program shutdown, not context shutdown (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | « src/gpu/vk/GrVkResource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkResourceProvider.cpp
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp
index c7a66caf4e027287fa5a7cf58e417d2d47ed0437..c83c6a4711d1ae0340b22b39e5116a5b37162b3e 100644
--- a/src/gpu/vk/GrVkResourceProvider.cpp
+++ b/src/gpu/vk/GrVkResourceProvider.cpp
@@ -15,7 +15,7 @@
#include "GrVkUtil.h"
#ifdef SK_TRACE_VK_RESOURCES
-SkTDynamicHash<GrVkResource, uint32_t> GrVkResource::fTrace;
+GrVkResource::Trace GrVkResource::fTrace;
SkRandom GrVkResource::fRandom;
#endif
@@ -314,16 +314,6 @@ void GrVkResourceProvider::destroyResources() {
fUniformDescLayout = VK_NULL_HANDLE;
}
fUniformDescPool->unref(fGpu);
-
-#ifdef SK_TRACE_VK_RESOURCES
- if (GrVkResource::fTrace.count()) {
- SkTDynamicHash<GrVkResource, uint32_t>::Iter iter(&GrVkResource::fTrace);
- for (; !iter.done(); ++iter) {
- (*iter).dumpInfo();
- }
- }
- SkASSERT(0 == GrVkResource::fTrace.count());
-#endif
}
void GrVkResourceProvider::abandonResources() {
@@ -368,16 +358,6 @@ void GrVkResourceProvider::abandonResources() {
fUniformDescLayout = VK_NULL_HANDLE;
fUniformDescPool->unrefAndAbandon();
-
-#ifdef SK_TRACE_VK_RESOURCES
- if (GrVkResource::fTrace.count()) {
- SkTDynamicHash<GrVkResource, uint32_t>::Iter iter(&GrVkResource::fTrace);
- for (; !iter.done(); ++iter) {
- (*iter).dumpInfo();
- }
- }
- SkASSERT(0 == GrVkResource::fTrace.count());
-#endif
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/gpu/vk/GrVkResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698