Index: bench/nanobench.cpp |
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp |
index 169a0eea51a436d2e5fe58675c50fd10f44b05e8..6fe2d626f49aef2de884ef38d8a25741db31d451 100644 |
--- a/bench/nanobench.cpp |
+++ b/bench/nanobench.cpp |
@@ -74,6 +74,7 @@ DEFINE_string(scales, "1.0", "Space-separated scales for SKPs."); |
DEFINE_bool(bbh, true, "Build a BBH for SKPs?"); |
DEFINE_bool(mpd, true, "Use MultiPictureDraw for the SKPs?"); |
DEFINE_int32(flushEvery, 10, "Flush --outResultsFile every Nth run."); |
+DEFINE_bool(resetGpuContext, true, "Reset the GrContext before running each test."); |
static SkString humanize(double ms) { |
if (FLAGS_verbose) return SkStringPrintf("%llu", (uint64_t)(ms*1e6)); |