Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: tools/VisualBench/VisualBench.h

Issue 1215033002: Add benchmarkstream to visualbench (Closed) Base URL: https://skia.googlesource.com/skia.git@microbenches
Patch Set: tweaks Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/visualbench.gyp ('k') | tools/VisualBench/VisualBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench/VisualBench.h
diff --git a/tools/VisualBench/VisualBench.h b/tools/VisualBench/VisualBench.h
index 332fe82eb438a12123f27271bea3eee32c5e33cc..683151f56629b32bc21c11d13a4974f11e75a7aa 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;
« no previous file with comments | « gyp/visualbench.gyp ('k') | tools/VisualBench/VisualBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698