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

Unified Diff: bench/Benchmark.h

Issue 1379923005: Remove const from `const int loops`. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: n too Created 5 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 | « bench/AlternatingColorPatternBench.cpp ('k') | 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 06d42e81d42f1ce2ad5096a3435a0fac84fbf09f..00b05afa22ab7689664c0f22ebd265d94cdc3a99 100644
--- a/bench/Benchmark.h
+++ b/bench/Benchmark.h
@@ -82,7 +82,7 @@ public:
void postDraw(SkCanvas*);
// Bench framework can tune loops to be large enough for stable timing.
- void draw(const int loops, SkCanvas*);
+ void draw(int loops, SkCanvas*);
void setForceAlpha(int alpha) {
fForceAlpha = alpha;
@@ -123,7 +123,7 @@ protected:
virtual void onPostDraw(SkCanvas*) {}
// Each bench should do its main work in a loop like this:
// for (int i = 0; i < loops; i++) { <work here> }
- virtual void onDraw(const int loops, SkCanvas*) = 0;
+ virtual void onDraw(int loops, SkCanvas*) = 0;
virtual SkIPoint onGetSize();
« no previous file with comments | « bench/AlternatingColorPatternBench.cpp ('k') | bench/Benchmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698