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

Side by Side Diff: bench/RegionContainBench.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, 2 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 unified diff | Download patch
« no previous file with comments | « bench/RegionBench.cpp ('k') | bench/RepeatTileBench.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "Benchmark.h" 8 #include "Benchmark.h"
9 #include "SkRandom.h" 9 #include "SkRandom.h"
10 #include "SkRegion.h" 10 #include "SkRegion.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 fB.setRect(0, 0, H, W); 45 fB.setRect(0, 0, H, W);
46 } 46 }
47 47
48 bool isSuitableFor(Backend backend) override { 48 bool isSuitableFor(Backend backend) override {
49 return backend == kNonRendering_Backend; 49 return backend == kNonRendering_Backend;
50 } 50 }
51 51
52 protected: 52 protected:
53 const char* onGetName() override { return fName.c_str(); } 53 const char* onGetName() override { return fName.c_str(); }
54 54
55 void onDraw(const int loops, SkCanvas*) override { 55 void onDraw(int loops, SkCanvas*) override {
56 Proc proc = fProc; 56 Proc proc = fProc;
57 57
58 for (int i = 0; i < loops; ++i) { 58 for (int i = 0; i < loops; ++i) {
59 proc(fA, fB); 59 proc(fA, fB);
60 } 60 }
61 } 61 }
62 62
63 private: 63 private:
64 typedef Benchmark INHERITED; 64 typedef Benchmark INHERITED;
65 }; 65 };
66 66
67 DEF_BENCH(return new RegionContainBench(sect_proc, "sect");) 67 DEF_BENCH(return new RegionContainBench(sect_proc, "sect");)
OLDNEW
« no previous file with comments | « bench/RegionBench.cpp ('k') | bench/RepeatTileBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698