Index: bench/RefCntBench.cpp |
diff --git a/bench/RefCntBench.cpp b/bench/RefCntBench.cpp |
index 313e9a484b13e9e26d88dd636b766e5a92752fe0..cf7cc305bd19f3f79f97b5e91eb7c0ebe70f8e73 100644 |
--- a/bench/RefCntBench.cpp |
+++ b/bench/RefCntBench.cpp |
@@ -27,7 +27,7 @@ protected: |
return "atomic_inc_32"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
for (int i = 0; i < loops; ++i) { |
sk_atomic_inc(&fX); |
} |
@@ -51,7 +51,7 @@ protected: |
return "atomic_inc_64"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
for (int i = 0; i < loops; ++i) { |
sk_atomic_inc(&fX); |
} |
@@ -73,7 +73,7 @@ protected: |
return "ref_cnt_stack"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
for (int i = 0; i < loops; ++i) { |
SkRefCnt ref; |
for (int j = 0; j < M; ++j) { |
@@ -107,7 +107,7 @@ protected: |
return "ref_cnt_heap"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
char memory[sizeof(PlacedRefCnt)]; |
for (int i = 0; i < loops; ++i) { |
PlacedRefCnt* ref = new (memory) PlacedRefCnt(); |
@@ -134,7 +134,7 @@ protected: |
return "ref_cnt_new"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
for (int i = 0; i < loops; ++i) { |
SkRefCnt* ref = new SkRefCnt(); |
for (int j = 0; j < M; ++j) { |
@@ -162,7 +162,7 @@ protected: |
return "ref_cnt_stack_weak"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
for (int i = 0; i < loops; ++i) { |
SkWeakRefCnt ref; |
for (int j = 0; j < M; ++j) { |
@@ -193,7 +193,7 @@ protected: |
return "ref_cnt_heap_weak"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
char memory[sizeof(PlacedWeakRefCnt)]; |
for (int i = 0; i < loops; ++i) { |
PlacedWeakRefCnt* ref = new (memory) PlacedWeakRefCnt(); |
@@ -220,7 +220,7 @@ protected: |
return "ref_cnt_new_weak"; |
} |
- void onDraw(const int loops, SkCanvas*) override { |
+ void onDraw(int loops, SkCanvas*) override { |
for (int i = 0; i < loops; ++i) { |
SkWeakRefCnt* ref = new SkWeakRefCnt(); |
for (int j = 0; j < M; ++j) { |