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 "nanobench.h" | 10 #include "nanobench.h" |
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 GPU_CONFIG(msaa4, kNative_GLContextType, 4, false) | 436 GPU_CONFIG(msaa4, kNative_GLContextType, 4, false) |
437 GPU_CONFIG(msaa16, kNative_GLContextType, 16, false) | 437 GPU_CONFIG(msaa16, kNative_GLContextType, 16, false) |
438 GPU_CONFIG(nvprmsaa4, kNVPR_GLContextType, 4, false) | 438 GPU_CONFIG(nvprmsaa4, kNVPR_GLContextType, 4, false) |
439 GPU_CONFIG(nvprmsaa16, kNVPR_GLContextType, 16, false) | 439 GPU_CONFIG(nvprmsaa16, kNVPR_GLContextType, 16, false) |
440 GPU_CONFIG(gpudft, kNative_GLContextType, 0, true) | 440 GPU_CONFIG(gpudft, kNative_GLContextType, 0, true) |
441 GPU_CONFIG(debug, kDebug_GLContextType, 0, false) | 441 GPU_CONFIG(debug, kDebug_GLContextType, 0, false) |
442 GPU_CONFIG(nullgpu, kNull_GLContextType, 0, false) | 442 GPU_CONFIG(nullgpu, kNull_GLContextType, 0, false) |
443 #ifdef SK_ANGLE | 443 #ifdef SK_ANGLE |
444 GPU_CONFIG(angle, kANGLE_GLContextType, 0, false) | 444 GPU_CONFIG(angle, kANGLE_GLContextType, 0, false) |
445 #endif | 445 #endif |
| 446 #ifdef SK_COMMAND_BUFFER |
| 447 GPU_CONFIG(commandbuffer, kCommandBuffer_GLContextType, 0, false) |
| 448 #endif |
446 #if SK_MESA | 449 #if SK_MESA |
447 GPU_CONFIG(mesa, kMESA_GLContextType, 0, false) | 450 GPU_CONFIG(mesa, kMESA_GLContextType, 0, false) |
448 #endif | 451 #endif |
449 } | 452 } |
450 #endif | 453 #endif |
451 | 454 |
452 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 455 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
453 if (is_cpu_config_allowed("hwui")) { | 456 if (is_cpu_config_allowed("hwui")) { |
454 Config config = { "hwui", Benchmark::kHWUI_Backend, kRGBA_8888_SkColorTy
pe, | 457 Config config = { "hwui", Benchmark::kHWUI_Backend, kRGBA_8888_SkColorTy
pe, |
455 kPremul_SkAlphaType, 0, kBogusGLContextType, false }; | 458 kPremul_SkAlphaType, 0, kBogusGLContextType, false }; |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 | 1159 |
1157 return 0; | 1160 return 0; |
1158 } | 1161 } |
1159 | 1162 |
1160 #if !defined SK_BUILD_FOR_IOS | 1163 #if !defined SK_BUILD_FOR_IOS |
1161 int main(int argc, char** argv) { | 1164 int main(int argc, char** argv) { |
1162 SkCommandLineFlags::Parse(argc, argv); | 1165 SkCommandLineFlags::Parse(argc, argv); |
1163 return nanobench_main(); | 1166 return nanobench_main(); |
1164 } | 1167 } |
1165 #endif | 1168 #endif |
OLD | NEW |