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

Unified Diff: bench/nanobench.cpp

Issue 1030353004: small fix for nanobench segfault when not running any tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 920979cbf9e66c865f2aa21922344ebaccc4e262..5e059328adae5e9fae805da2074a035debac9a2a 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -894,6 +894,12 @@ int nanobench_main() {
log->config("meta");
log->metric("max_rss_mb", sk_tools::getMaxResidentSetSizeMB());
+#if SK_SUPPORT_GPU
+ // Make sure we clean up the global GrContextFactory here, otherwise we might race with the
+ // SkEventTracer destructor
+ gGrFactory.reset(NULL);
+#endif
+
return 0;
}
« 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