| 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 kUnknown_SkColorType, kUnpremul_SkAlphaType, nullptr) | 459 kUnknown_SkColorType, kUnpremul_SkAlphaType, nullptr) |
| 460 | 460 |
| 461 CPU_CONFIG(8888, kRaster_Backend, | 461 CPU_CONFIG(8888, kRaster_Backend, |
| 462 kN32_SkColorType, kPremul_SkAlphaType, nullptr) | 462 kN32_SkColorType, kPremul_SkAlphaType, nullptr) |
| 463 CPU_CONFIG(565, kRaster_Backend, | 463 CPU_CONFIG(565, kRaster_Backend, |
| 464 kRGB_565_SkColorType, kOpaque_SkAlphaType, nullptr) | 464 kRGB_565_SkColorType, kOpaque_SkAlphaType, nullptr) |
| 465 auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named); | 465 auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named); |
| 466 CPU_CONFIG(srgb, kRaster_Backend, | 466 CPU_CONFIG(srgb, kRaster_Backend, |
| 467 kN32_SkColorType, kPremul_SkAlphaType, srgbColorSpace) | 467 kN32_SkColorType, kPremul_SkAlphaType, srgbColorSpace) |
| 468 CPU_CONFIG(f16, kRaster_Backend, | 468 CPU_CONFIG(f16, kRaster_Backend, |
| 469 kRGBA_F16_SkColorType, kPremul_SkAlphaType, nullptr) | 469 kRGBA_F16_SkColorType, kPremul_SkAlphaType, srgbColorSpace) |
| 470 } | 470 } |
| 471 | 471 |
| 472 #undef CPU_CONFIG | 472 #undef CPU_CONFIG |
| 473 | 473 |
| 474 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK | 474 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |
| 475 if (config->getTag().equals("hwui")) { | 475 if (config->getTag().equals("hwui")) { |
| 476 Config config = { SkString("hwui"), Benchmark::kHWUI_Backend, | 476 Config config = { SkString("hwui"), Benchmark::kHWUI_Backend, |
| 477 kRGBA_8888_SkColorType, kPremul_SkAlphaType, nullptr, | 477 kRGBA_8888_SkColorType, kPremul_SkAlphaType, nullptr, |
| 478 0, kBogusContextType, kBogusContextOptions, false }; | 478 0, kBogusContextType, kBogusContextOptions, false }; |
| 479 configs->push_back(config); | 479 configs->push_back(config); |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 | 1297 |
| 1298 return 0; | 1298 return 0; |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 #if !defined SK_BUILD_FOR_IOS | 1301 #if !defined SK_BUILD_FOR_IOS |
| 1302 int main(int argc, char** argv) { | 1302 int main(int argc, char** argv) { |
| 1303 SkCommandLineFlags::Parse(argc, argv); | 1303 SkCommandLineFlags::Parse(argc, argv); |
| 1304 return nanobench_main(); | 1304 return nanobench_main(); |
| 1305 } | 1305 } |
| 1306 #endif | 1306 #endif |
| OLD | NEW |