| Index: bench/nanobench.cpp
|
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
|
| index 2758528a9624448c52b61d5898d064e067e7d759..a5a96aa6131ae45028d0c9ed6c455630286997f8 100644
|
| --- a/bench/nanobench.cpp
|
| +++ b/bench/nanobench.cpp
|
| @@ -576,6 +576,10 @@ int nanobench_main() {
|
| gGrFactory.reset(SkNEW_ARGS(GrContextFactory, (grContextOpts)));
|
| #endif
|
|
|
| + if (FLAGS_veryVerbose) {
|
| + FLAGS_verbose = true;
|
| + }
|
| +
|
| if (kAutoTuneLoops != FLAGS_loops) {
|
| FLAGS_samples = 1;
|
| FLAGS_gpuFrameLag = 0;
|
| @@ -719,17 +723,23 @@ int nanobench_main() {
|
| , bench->getUniqueName()
|
| );
|
| }
|
| +#if SK_SUPPORT_GPU && GR_CACHE_STATS
|
| + if (FLAGS_veryVerbose &&
|
| + Benchmark::kGPU_Backend == targets[j]->config.backend) {
|
| + gGrFactory->get(targets[j]->config.ctxType)->printCacheStats();
|
| + }
|
| +#endif
|
| }
|
| targets.deleteAll();
|
|
|
| - #if SK_SUPPORT_GPU
|
| +#if SK_SUPPORT_GPU
|
| if (FLAGS_abandonGpuContext) {
|
| gGrFactory->abandonContexts();
|
| }
|
| if (FLAGS_resetGpuContext || FLAGS_abandonGpuContext) {
|
| gGrFactory->destroyContexts();
|
| }
|
| - #endif
|
| +#endif
|
| }
|
|
|
| return 0;
|
|
|