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

Unified Diff: dm/DM.cpp

Issue 1731783003: DM: assert we ran as many tasks as we thought we would (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 236fce870808b2b220c3378c2711d84e8a35d13f..ba5ecd07033df3ef95c4c4eea86ad644e195be84 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1184,6 +1184,9 @@ int dm_main() {
parallel.wait();
gDefinitelyThreadSafeWork.wait();
+ // We'd better have run everything.
+ SkASSERT(gPending == 0);
+
// At this point we're back in single-threaded land.
sk_tool_utils::release_portable_typefaces();
« 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