Index: bench/nanobench.cpp |
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp |
index 3cc03a805da678be64746f273b32d88c5d5d1b88..07ff0dd2b029677369f36286b8f9d54990af8864 100644 |
--- a/bench/nanobench.cpp |
+++ b/bench/nanobench.cpp |
@@ -477,7 +477,10 @@ int nanobench_main() { |
targets.deleteAll(); |
#if SK_SUPPORT_GPU |
- if (FLAGS_resetGpuContext) { |
+ if (FLAGS_abandonGpuContext) { |
+ gGrFactory.abandonContexts(); |
+ } |
+ if (FLAGS_resetGpuContext || FLAGS_abandonGpuContext) { |
gGrFactory.destroyContexts(); |
} |
#endif |