aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/VisualBench/VisualBench.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/VisualBench/VisualBench.h')
-rw-r--r--tools/VisualBench/VisualBench.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/VisualBench/VisualBench.h b/tools/VisualBench/VisualBench.h
index 332fe82eb4..683151f566 100644
--- a/tools/VisualBench/VisualBench.h
+++ b/tools/VisualBench/VisualBench.h
@@ -15,6 +15,7 @@
#include "SkString.h"
#include "SkSurface.h"
#include "Timer.h"
+#include "VisualBenchmarkStream.h"
#include "gl/SkGLContext.h"
class GrContext;
@@ -44,12 +45,10 @@ private:
void setupRenderTarget();
bool onHandleChar(SkUnichar unichar) override;
void printStats();
- bool loadPicture();
- bool advanceRecordIfNecessary();
+ bool advanceRecordIfNecessary(SkCanvas*);
inline void renderFrame(SkCanvas*);
struct Record {
- SkString fFilename;
SkTArray<double> fMeasurements;
};
@@ -61,8 +60,6 @@ private:
};
void preWarm(State nextState);
- int fCurrentPictureIdx;
- SkAutoTUnref<SkPicture> fPicture;
int fCurrentSample;
int fCurrentFrame;
int fFlushes;
@@ -70,6 +67,8 @@ private:
SkTArray<Record> fRecords;
WallTimer fTimer;
State fState;
+ SkAutoTDelete<VisualBenchmarkStream> fBenchmarkStream;
+ Benchmark* fBenchmark;
// support framework
SkAutoTUnref<SkSurface> fSurface;