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

Side by Side Diff: bench/RectanizerBench.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/RectBench.cpp ('k') | bench/RegionBench.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 2014 Google Inc. 2 * Copyright 2014 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 "SkSize.h" 10 #include "SkSize.h"
(...skipping 23 matching lines...) Expand all
34 kPow2_RectanizerType, 34 kPow2_RectanizerType,
35 kSkyline_RectanizerType, 35 kSkyline_RectanizerType,
36 }; 36 };
37 37
38 enum RectType { 38 enum RectType {
39 kRand_RectType, 39 kRand_RectType,
40 kRandPow2_RectType, 40 kRandPow2_RectType,
41 kSmallPow2_RectType 41 kSmallPow2_RectType
42 }; 42 };
43 43
44 RectanizerBench(RectanizerType rectanizerType, RectType rectType) 44 RectanizerBench(RectanizerType rectanizerType, RectType rectType)
45 : fName("rectanizer_") 45 : fName("rectanizer_")
46 , fRectanizerType(rectanizerType) 46 , fRectanizerType(rectanizerType)
47 , fRectType(rectType) { 47 , fRectType(rectType) {
48 48
49 if (kPow2_RectanizerType == fRectanizerType) { 49 if (kPow2_RectanizerType == fRectanizerType) {
50 fName.append("pow2_"); 50 fName.append("pow2_");
51 } else { 51 } else {
52 SkASSERT(kSkyline_RectanizerType == fRectanizerType); 52 SkASSERT(kSkyline_RectanizerType == fRectanizerType);
53 fName.append("skyline_"); 53 fName.append("skyline_");
54 } 54 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 DEF_BENCH(return new RectanizerBench(RectanizerBench::kPow2_RectanizerType, 129 DEF_BENCH(return new RectanizerBench(RectanizerBench::kPow2_RectanizerType,
130 RectanizerBench::kSmallPow2_RectType);) 130 RectanizerBench::kSmallPow2_RectType);)
131 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType, 131 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType,
132 RectanizerBench::kRand_RectType);) 132 RectanizerBench::kRand_RectType);)
133 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType, 133 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType,
134 RectanizerBench::kRandPow2_RectType);) 134 RectanizerBench::kRandPow2_RectType);)
135 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType, 135 DEF_BENCH(return new RectanizerBench(RectanizerBench::kSkyline_RectanizerType,
136 RectanizerBench::kSmallPow2_RectType);) 136 RectanizerBench::kSmallPow2_RectType);)
137 137
138 #endif 138 #endif
OLDNEW
« no previous file with comments | « bench/RectBench.cpp ('k') | bench/RegionBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698