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

Unified Diff: tools/VisualBench.h

Issue 1201003002: add autotuning to visualbench (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc 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 | « no previous file | tools/VisualBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/VisualBench.h
diff --git a/tools/VisualBench.h b/tools/VisualBench.h
index 9d7b946afec9598b6e0b82850c494f219ef9d39a..332fe82eb438a12123f27271bea3eee32c5e33cc 100644
--- a/tools/VisualBench.h
+++ b/tools/VisualBench.h
@@ -54,14 +54,19 @@ private:
};
enum State {
- kPreWarm_State,
+ kPreWarmLoops_State,
+ kTuneLoops_State,
+ kPreWarmTiming_State,
kTiming_State,
};
+ void preWarm(State nextState);
- int fLoop;
int fCurrentPictureIdx;
SkAutoTUnref<SkPicture> fPicture;
int fCurrentSample;
+ int fCurrentFrame;
+ int fFlushes;
+ int fLoops;
SkTArray<Record> fRecords;
WallTimer fTimer;
State fState;
« no previous file with comments | « no previous file | tools/VisualBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698