OLD | NEW |
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 Loading... |
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") |
OLD | NEW |