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

Side by Side Diff: bench/SkBlend_optsBench.cpp

Issue 2002423002: [GN] Add support for disabling opts via SK_BUILD_NO_OPTS define. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig » ('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 2016 Google Inc. 2 * Copyright 2016 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 <tuple> 8 #include <tuple>
9 9
10 #include "Benchmark.h" 10 #include "Benchmark.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 private: 144 private:
145 int fCount; 145 int fCount;
146 SkAutoTArray<uint32_t> fDst; 146 SkAutoTArray<uint32_t> fDst;
147 SkString fFileName; 147 SkString fFileName;
148 SkString fName; 148 SkString fName;
149 SkPixmap fPixmap; 149 SkPixmap fPixmap;
150 150
151 typedef Benchmark INHERITED; 151 typedef Benchmark INHERITED;
152 }; 152 };
153 153
154 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) 154 #if defined(SK_CPU_X86) && !defined(SK_BUILD_NO_OPTS)
155 #define BENCHES(fileName) \ 155 #define BENCHES(fileName) \
156 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsBruteForce>(fileName); ) \ 156 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsBruteForce>(fileName); ) \
157 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsTrivial>(fileName); ) \ 157 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsTrivial>(fileName); ) \
158 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsNonSimdCore>(fileName); ) \ 158 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsNonSimdCore>(fileName); ) \
159 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsDefault>(fileName); ) \ 159 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsDefault>(fileName); ) \
160 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsSSE41>(fileName); ) 160 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsSSE41>(fileName); )
161 #else 161 #else
162 #define BENCHES(fileName) \ 162 #define BENCHES(fileName) \
163 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsBruteForce>(fileName); ) \ 163 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsBruteForce>(fileName); ) \
164 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsTrivial>(fileName); ) \ 164 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsTrivial>(fileName); ) \
165 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsNonSimdCore>(fileName); ) \ 165 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsNonSimdCore>(fileName); ) \
166 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsDefault>(fileName); ) 166 DEF_BENCH( return new LinearSrcOverBench<SrcOverVSkOptsDefault>(fileName); )
167 #endif 167 #endif
168 168
169 BENCHES("yellow_rose.png") 169 BENCHES("yellow_rose.png")
170 BENCHES("baby_tux.png") 170 BENCHES("baby_tux.png")
171 BENCHES("plane.png") 171 BENCHES("plane.png")
172 BENCHES("mandrill_512.png") 172 BENCHES("mandrill_512.png")
173 BENCHES("iconstrip.png") 173 BENCHES("iconstrip.png")
OLDNEW
« no previous file with comments | « no previous file | experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698