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

Unified Diff: src/gpu/text/GrTextBlobCache.cpp

Issue 1555993005: Add assert that memory pool is empty when GrTextBlobCache frees (Closed) Base URL: https://skia.googlesource.com/skia.git@minor-mempoolfix
Patch Set: Created 4 years, 11 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/GrDrawingManager.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/text/GrTextBlobCache.cpp
diff --git a/src/gpu/text/GrTextBlobCache.cpp b/src/gpu/text/GrTextBlobCache.cpp
index f11b7c60cbd88d62857863e27847d9132c8219a8..685284bee5c02fd062bb84ab29b4ed85feabf8b9 100644
--- a/src/gpu/text/GrTextBlobCache.cpp
+++ b/src/gpu/text/GrTextBlobCache.cpp
@@ -55,4 +55,7 @@ void GrTextBlobCache::freeAll() {
++iter;
}
fCache.rewind();
+
+ // There should be no allocations in the memory pool at this point
+ SkASSERT(fPool.isEmpty());
}
« no previous file with comments | « src/gpu/GrDrawingManager.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698