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

Side by Side Diff: dm/DM.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 | « bench/nanobench.cpp ('k') | samplecode/SampleApp.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 2013 Google Inc. 2 * Copyright 2013 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 "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK 855 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
856 SINK("hwui", HWUISink); 856 SINK("hwui", HWUISink);
857 #endif 857 #endif
858 858
859 if (FLAGS_cpu) { 859 if (FLAGS_cpu) {
860 auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named); 860 auto srgbColorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
861 861
862 SINK("565", RasterSink, kRGB_565_SkColorType); 862 SINK("565", RasterSink, kRGB_565_SkColorType);
863 SINK("8888", RasterSink, kN32_SkColorType); 863 SINK("8888", RasterSink, kN32_SkColorType);
864 SINK("srgb", RasterSink, kN32_SkColorType, srgbColorSpace); 864 SINK("srgb", RasterSink, kN32_SkColorType, srgbColorSpace);
865 SINK("f16", RasterSink, kRGBA_F16_SkColorType); 865 SINK("f16", RasterSink, kRGBA_F16_SkColorType, srgbColorSpace);
866 SINK("pdf", PDFSink); 866 SINK("pdf", PDFSink);
867 SINK("skp", SKPSink); 867 SINK("skp", SKPSink);
868 SINK("svg", SVGSink); 868 SINK("svg", SVGSink);
869 SINK("null", NullSink); 869 SINK("null", NullSink);
870 SINK("xps", XPSSink); 870 SINK("xps", XPSSink);
871 SINK("pdfa", PDFSink, true); 871 SINK("pdfa", PDFSink, true);
872 } 872 }
873 #undef SINK 873 #undef SINK
874 return nullptr; 874 return nullptr;
875 } 875 }
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 #endif 1431 #endif
1432 } 1432 }
1433 } // namespace skiatest 1433 } // namespace skiatest
1434 1434
1435 #if !defined(SK_BUILD_FOR_IOS) 1435 #if !defined(SK_BUILD_FOR_IOS)
1436 int main(int argc, char** argv) { 1436 int main(int argc, char** argv) {
1437 SkCommandLineFlags::Parse(argc, argv); 1437 SkCommandLineFlags::Parse(argc, argv);
1438 return dm_main(); 1438 return dm_main();
1439 } 1439 }
1440 #endif 1440 #endif
OLDNEW
« no previous file with comments | « bench/nanobench.cpp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698