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

Side by Side Diff: bench/TextBench.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/TableBench.cpp ('k') | bench/TextBlobBench.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "Benchmark.h" 9 #include "Benchmark.h"
10 #include "Resources.h" 10 #include "Resources.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 fName.appendf("_%02X", fPaint.getAlpha()); 104 fName.appendf("_%02X", fPaint.getAlpha());
105 } 105 }
106 106
107 if (fDoColorEmoji) { 107 if (fDoColorEmoji) {
108 fName.append("_ColorEmoji"); 108 fName.append("_ColorEmoji");
109 } 109 }
110 110
111 return fName.c_str(); 111 return fName.c_str();
112 } 112 }
113 113
114 void onDraw(const int loops, SkCanvas* canvas) override { 114 void onDraw(int loops, SkCanvas* canvas) override {
115 const SkIPoint dim = this->getSize(); 115 const SkIPoint dim = this->getSize();
116 SkRandom rand; 116 SkRandom rand;
117 117
118 SkPaint paint(fPaint); 118 SkPaint paint(fPaint);
119 this->setupPaint(&paint); 119 this->setupPaint(&paint);
120 // explicitly need these 120 // explicitly need these
121 paint.setColor(fPaint.getColor()); 121 paint.setColor(fPaint.getColor());
122 paint.setAntiAlias(kBW != fFQ); 122 paint.setAntiAlias(kBW != fFQ);
123 paint.setLCDRenderText(kLCD == fFQ); 123 paint.setLCDRenderText(kLCD == fFQ);
124 124
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kLCD); ) 169 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kLCD); )
170 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kLCD); ) 170 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kLCD); )
171 171
172 DEF_BENCH( return new TextBench(STR, 16, 0xFFFFFFFF, kBW, true); ) 172 DEF_BENCH( return new TextBench(STR, 16, 0xFFFFFFFF, kBW, true); )
173 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kBW, true); ) 173 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kBW, true); )
174 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kBW, true); ) 174 DEF_BENCH( return new TextBench(STR, 16, 0xFFFF0000, kBW, true); )
175 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kBW, true); ) 175 DEF_BENCH( return new TextBench(STR, 16, 0x88FF0000, kBW, true); )
176 176
177 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kBW, true, true); ) 177 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kBW, true, true); )
178 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kAA, false, true); ) 178 DEF_BENCH( return new TextBench(STR, 16, 0xFF000000, kAA, false, true); )
OLDNEW
« no previous file with comments | « bench/TableBench.cpp ('k') | bench/TextBlobBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698