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

Side by Side Diff: bench/Benchmark.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/Benchmark.h ('k') | bench/BezierBench.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 2011 Google Inc. 2 * Copyright 2011 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 9
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 void Benchmark::postDraw(SkCanvas* canvas) { 48 void Benchmark::postDraw(SkCanvas* canvas) {
49 this->onPostDraw(canvas); 49 this->onPostDraw(canvas);
50 } 50 }
51 51
52 void Benchmark::perCanvasPostDraw(SkCanvas* canvas) { 52 void Benchmark::perCanvasPostDraw(SkCanvas* canvas) {
53 this->onPerCanvasPostDraw(canvas); 53 this->onPerCanvasPostDraw(canvas);
54 } 54 }
55 55
56 void Benchmark::draw(const int loops, SkCanvas* canvas) { 56 void Benchmark::draw(int loops, SkCanvas* canvas) {
57 SkAutoCanvasRestore ar(canvas, true/*save now*/); 57 SkAutoCanvasRestore ar(canvas, true/*save now*/);
58 this->onDraw(loops, canvas); 58 this->onDraw(loops, canvas);
59 } 59 }
60 60
61 void Benchmark::setupPaint(SkPaint* paint) { 61 void Benchmark::setupPaint(SkPaint* paint) {
62 paint->setAlpha(fForceAlpha); 62 paint->setAlpha(fForceAlpha);
63 paint->setAntiAlias(true); 63 paint->setAntiAlias(true);
64 paint->setFilterQuality(kNone_SkFilterQuality); 64 paint->setFilterQuality(kNone_SkFilterQuality);
65 65
66 paint->setFlags((paint->getFlags() & ~fClearMask) | fOrMask); 66 paint->setFlags((paint->getFlags() & ~fClearMask) | fOrMask);
67 67
68 if (SkTriState::kDefault != fDither) { 68 if (SkTriState::kDefault != fDither) {
69 paint->setDither(SkTriState::kTrue == fDither); 69 paint->setDither(SkTriState::kTrue == fDither);
70 } 70 }
71 } 71 }
72 72
73 SkIPoint Benchmark::onGetSize() { 73 SkIPoint Benchmark::onGetSize() {
74 return SkIPoint::Make(640, 480); 74 return SkIPoint::Make(640, 480);
75 } 75 }
OLDNEW
« no previous file with comments | « bench/Benchmark.h ('k') | bench/BezierBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698