| Index: tools/VisualBench/VisualBenchmarkStream.cpp
|
| diff --git a/tools/VisualBench/VisualBenchmarkStream.cpp b/tools/VisualBench/VisualBenchmarkStream.cpp
|
| index 183da75b50b45c03cb6d8710027730577dbd0a90..c4da7b51dc1b2f4a49fb5fcc000b0f6e7cfe58c0 100644
|
| --- a/tools/VisualBench/VisualBenchmarkStream.cpp
|
| +++ b/tools/VisualBench/VisualBenchmarkStream.cpp
|
| @@ -72,7 +72,7 @@ private:
|
| SkRect fPerlinRect;
|
| };
|
|
|
| -VisualBenchmarkStream::VisualBenchmarkStream(const SkSurfaceProps& surfaceProps)
|
| +VisualBenchmarkStream::VisualBenchmarkStream(const SkSurfaceProps& surfaceProps, bool justSKP)
|
| : fSurfaceProps(surfaceProps)
|
| , fBenches(BenchRegistry::Head())
|
| , fGMs(skiagm::GMRegistry::Head())
|
| @@ -92,6 +92,11 @@ VisualBenchmarkStream::VisualBenchmarkStream(const SkSurfaceProps& surfaceProps)
|
| }
|
| }
|
|
|
| + if (justSKP) {
|
| + fGMs = nullptr;
|
| + fBenches = nullptr;
|
| + }
|
| +
|
| // seed with an initial benchmark
|
| // NOTE the initial benchmark will not have preTimingHooks called, but that is okay because
|
| // it is the warmupbench
|
|
|