Index: tools/VisualBench/VisualBenchmarkStream.h |
diff --git a/tools/VisualBench/VisualBenchmarkStream.h b/tools/VisualBench/VisualBenchmarkStream.h |
index 9e5d4590cb80ee8a4f4c9b114a3819ddf9bd0bd3..89ca632821490032d6904d30321c6077680b5a6d 100644 |
--- a/tools/VisualBench/VisualBenchmarkStream.h |
+++ b/tools/VisualBench/VisualBenchmarkStream.h |
@@ -23,6 +23,7 @@ public: |
static bool ReadPicture(const char* path, SkAutoTUnref<SkPicture>* pic); |
Benchmark* next(); |
+ Benchmark* current() { return fBenchmark.get(); } |
private: |
Benchmark* innerNext(); |
@@ -30,6 +31,7 @@ private: |
const BenchRegistry* fBenches; |
const skiagm::GMRegistry* fGMs; |
SkTArray<SkString> fSKPs; |
+ SkAutoTUnref<Benchmark> fBenchmark; |
const char* fSourceType; // What we're benching: bench, GM, SKP, ... |
const char* fBenchType; // How we bench it: micro, playback, ... |