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

Side by Side Diff: bench/BigPathBench.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/BezierBench.cpp ('k') | bench/BitmapBench.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 2015 Google Inc. 2 * Copyright 2015 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 "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 } 43 }
44 44
45 SkIPoint onGetSize() override { 45 SkIPoint onGetSize() override {
46 return SkIPoint::Make(640, 100); 46 return SkIPoint::Make(640, 100);
47 } 47 }
48 48
49 void onDelayedSetup() override { 49 void onDelayedSetup() override {
50 make_path(fPath); 50 make_path(fPath);
51 } 51 }
52 52
53 void onDraw(const int loops, SkCanvas* canvas) override { 53 void onDraw(int loops, SkCanvas* canvas) override {
54 SkPaint paint; 54 SkPaint paint;
55 paint.setAntiAlias(true); 55 paint.setAntiAlias(true);
56 paint.setStyle(SkPaint::kStroke_Style); 56 paint.setStyle(SkPaint::kStroke_Style);
57 paint.setStrokeWidth(2); 57 paint.setStrokeWidth(2);
58 if (fRound) { 58 if (fRound) {
59 paint.setStrokeJoin(SkPaint::kRound_Join); 59 paint.setStrokeJoin(SkPaint::kRound_Join);
60 } 60 }
61 this->setupPaint(&paint); 61 this->setupPaint(&paint);
62 62
63 const SkRect r = fPath.getBounds(); 63 const SkRect r = fPath.getBounds();
(...skipping 18 matching lines...) Expand all
82 }; 82 };
83 83
84 DEF_BENCH( return new BigPathBench(kLeft_Align, false); ) 84 DEF_BENCH( return new BigPathBench(kLeft_Align, false); )
85 DEF_BENCH( return new BigPathBench(kMiddle_Align, false); ) 85 DEF_BENCH( return new BigPathBench(kMiddle_Align, false); )
86 DEF_BENCH( return new BigPathBench(kRight_Align, false); ) 86 DEF_BENCH( return new BigPathBench(kRight_Align, false); )
87 87
88 DEF_BENCH( return new BigPathBench(kLeft_Align, true); ) 88 DEF_BENCH( return new BigPathBench(kLeft_Align, true); )
89 DEF_BENCH( return new BigPathBench(kMiddle_Align, true); ) 89 DEF_BENCH( return new BigPathBench(kMiddle_Align, true); )
90 DEF_BENCH( return new BigPathBench(kRight_Align, true); ) 90 DEF_BENCH( return new BigPathBench(kRight_Align, true); )
91 91
OLDNEW
« no previous file with comments | « bench/BezierBench.cpp ('k') | bench/BitmapBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698