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

Unified Diff: bench/MemsetBench.cpp

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/MemoryBench.cpp ('k') | bench/MergeBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/MemsetBench.cpp
diff --git a/bench/MemsetBench.cpp b/bench/MemsetBench.cpp
index d1682bdd70c459b2219a81b161b69faed27cb347..beae3390c6d34bacca6c642ebcb876db3f1f8eb2 100644
--- a/bench/MemsetBench.cpp
+++ b/bench/MemsetBench.cpp
@@ -20,7 +20,7 @@ public:
bool isSuitableFor(Backend backend) override { return backend == kNonRendering_Backend; }
const char* onGetName() override { return fName.c_str(); }
- void onDraw(const int loops, SkCanvas*) override;
+ void onDraw(int loops, SkCanvas*) override;
private:
int fN;
@@ -28,13 +28,13 @@ private:
SkString fName;
};
-template <> void MemsetBench<uint32_t, false>::onDraw(const int loops, SkCanvas*) {
+template <> void MemsetBench<uint32_t, false>::onDraw(int loops, SkCanvas*) {
for (int i = 0; i < 1000*loops; i++) {
sk_memset32(fBuffer.get(), 0xFACEB004, fN);
}
}
-template <> void MemsetBench<uint16_t, false>::onDraw(const int loops, SkCanvas*) {
+template <> void MemsetBench<uint16_t, false>::onDraw(int loops, SkCanvas*) {
for (int i = 0; i < 1000*loops; i++) {
sk_memset16(fBuffer.get(), 0x4973, fN);
}
@@ -45,13 +45,13 @@ static void memsetT(T* dst, T val, int n) {
for (int i = 0; i < n; i++) { dst[i] = val; }
}
-template <> void MemsetBench<uint32_t, true>::onDraw(const int loops, SkCanvas*) {
+template <> void MemsetBench<uint32_t, true>::onDraw(int loops, SkCanvas*) {
for (int i = 0; i < 1000*loops; i++) {
memsetT<uint32_t>(fBuffer.get(), 0xFACEB004, fN);
}
}
-template <> void MemsetBench<uint16_t, true>::onDraw(const int loops, SkCanvas*) {
+template <> void MemsetBench<uint16_t, true>::onDraw(int loops, SkCanvas*) {
for (int i = 0; i < 1000*loops; i++) {
memsetT<uint16_t>(fBuffer.get(), 0x4973, fN);
}
« no previous file with comments | « bench/MemoryBench.cpp ('k') | bench/MergeBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698