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

Side by Side Diff: bench/nanobench.cpp

Issue 2177193004: Always supply a color space (sRGB for now) with F16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix uploading of F16 textures with color spaces Created 4 years, 4 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 | dm/DM.cpp » ('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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698