OLD | NEW |
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 <ctype.h> | 8 #include <ctype.h> |
9 | 9 |
10 #include "Benchmark.h" | 10 #include "Benchmark.h" |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 } | 275 } |
276 | 276 |
277 if (FLAGS_gpu) { | 277 if (FLAGS_gpu) { |
278 GPU_CONFIG(gpu, kNative_GLContextType, 0) | 278 GPU_CONFIG(gpu, kNative_GLContextType, 0) |
279 GPU_CONFIG(msaa4, kNative_GLContextType, 4) | 279 GPU_CONFIG(msaa4, kNative_GLContextType, 4) |
280 GPU_CONFIG(msaa16, kNative_GLContextType, 16) | 280 GPU_CONFIG(msaa16, kNative_GLContextType, 16) |
281 GPU_CONFIG(nvprmsaa4, kNVPR_GLContextType, 4) | 281 GPU_CONFIG(nvprmsaa4, kNVPR_GLContextType, 4) |
282 GPU_CONFIG(nvprmsaa16, kNVPR_GLContextType, 16) | 282 GPU_CONFIG(nvprmsaa16, kNVPR_GLContextType, 16) |
283 GPU_CONFIG(debug, kDebug_GLContextType, 0) | 283 GPU_CONFIG(debug, kDebug_GLContextType, 0) |
284 GPU_CONFIG(nullgpu, kNull_GLContextType, 0) | 284 GPU_CONFIG(nullgpu, kNull_GLContextType, 0) |
| 285 #ifdef SK_ANGLE |
| 286 GPU_CONFIG(angle, kANGLE_GLContextType, 0) |
| 287 #endif |
285 } | 288 } |
286 #endif | 289 #endif |
287 } | 290 } |
288 | 291 |
289 // If bench is enabled for config, returns a Target* for it, otherwise NULL. | 292 // If bench is enabled for config, returns a Target* for it, otherwise NULL. |
290 static Target* is_enabled(Benchmark* bench, const Config& config) { | 293 static Target* is_enabled(Benchmark* bench, const Config& config) { |
291 if (!bench->isSuitableFor(config.backend)) { | 294 if (!bench->isSuitableFor(config.backend)) { |
292 return NULL; | 295 return NULL; |
293 } | 296 } |
294 | 297 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 | 612 |
610 return 0; | 613 return 0; |
611 } | 614 } |
612 | 615 |
613 #if !defined SK_BUILD_FOR_IOS | 616 #if !defined SK_BUILD_FOR_IOS |
614 int main(int argc, char** argv) { | 617 int main(int argc, char** argv) { |
615 SkCommandLineFlags::Parse(argc, argv); | 618 SkCommandLineFlags::Parse(argc, argv); |
616 return nanobench_main(); | 619 return nanobench_main(); |
617 } | 620 } |
618 #endif | 621 #endif |
OLD | NEW |