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

Unified Diff: bench/Benchmark.h

Issue 552303004: Distinguish common and unique names for skiaperf.com. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: unique name Created 6 years, 3 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 | bench/Benchmark.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Benchmark.h
diff --git a/bench/Benchmark.h b/bench/Benchmark.h
index 8e8eeff4f2d1e7980afb8dc560a588feaeec79dc..508d1da69409c2676b6b6451cfd378a5c3463438 100644
--- a/bench/Benchmark.h
+++ b/bench/Benchmark.h
@@ -49,6 +49,7 @@ public:
Benchmark();
const char* getName();
+ const char* getUniqueName();
SkIPoint getSize();
enum Backend {
@@ -98,6 +99,7 @@ protected:
virtual void setupPaint(SkPaint* paint);
virtual const char* onGetName() = 0;
+ virtual const char* onGetUniqueName() { return this->onGetName(); }
virtual void onPreDraw() {}
// Each bench should do its main work in a loop like this:
// for (int i = 0; i < loops; i++) { <work here> }
« no previous file with comments | « no previous file | bench/Benchmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698