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

Unified Diff: bench/SkBenchmark.cpp

Issue 99893003: Simplify benchmark internal API. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years 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 | « bench/SkBenchmark.h ('k') | bench/SkipZeroesBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/SkBenchmark.cpp
diff --git a/bench/SkBenchmark.cpp b/bench/SkBenchmark.cpp
index 26a7a3bb32458282182bfdd222001a209fede1d8..39119b98e92512465e49cee2e7bb17d90e3e75c3 100644
--- a/bench/SkBenchmark.cpp
+++ b/bench/SkBenchmark.cpp
@@ -22,7 +22,6 @@ SkBenchmark::SkBenchmark() {
fForceFilter = false;
fDither = SkTriState::kDefault;
fOrMask = fClearMask = 0;
- fLoops = 1;
}
const char* SkBenchmark::getName() {
@@ -37,8 +36,8 @@ void SkBenchmark::preDraw() {
this->onPreDraw();
}
-void SkBenchmark::draw(SkCanvas* canvas) {
- this->onDraw(canvas);
+void SkBenchmark::draw(const int loops, SkCanvas* canvas) {
+ this->onDraw(loops, canvas);
}
void SkBenchmark::postDraw() {
« no previous file with comments | « bench/SkBenchmark.h ('k') | bench/SkipZeroesBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698