OLD | NEW |
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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 } | 796 } |
797 | 797 |
798 SkTArray<SkString> colorImages; | 798 SkTArray<SkString> colorImages; |
799 if (!CollectImages(FLAGS_colorImages, &colorImages)) { | 799 if (!CollectImages(FLAGS_colorImages, &colorImages)) { |
800 return false; | 800 return false; |
801 } | 801 } |
802 | 802 |
803 for (auto colorImage : colorImages) { | 803 for (auto colorImage : colorImages) { |
804 ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBasel
ine_Mode); | 804 ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBasel
ine_Mode); |
805 push_src("image", "color_codec_baseline", src); | 805 push_src("image", "color_codec_baseline", src); |
| 806 |
| 807 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kSrcToLinear_Mode); |
| 808 push_src("image", "color_codec_src_to_linear", src); |
806 } | 809 } |
807 | 810 |
808 return true; | 811 return true; |
809 } | 812 } |
810 | 813 |
811 static void push_sink(const SkCommandLineConfig& config, Sink* s) { | 814 static void push_sink(const SkCommandLineConfig& config, Sink* s) { |
812 SkAutoTDelete<Sink> sink(s); | 815 SkAutoTDelete<Sink> sink(s); |
813 | 816 |
814 // Try a simple Src as a canary. If it fails, skip this sink. | 817 // Try a simple Src as a canary. If it fails, skip this sink. |
815 struct : public Src { | 818 struct : public Src { |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 #endif | 1446 #endif |
1444 } | 1447 } |
1445 } // namespace skiatest | 1448 } // namespace skiatest |
1446 | 1449 |
1447 #if !defined(SK_BUILD_FOR_IOS) | 1450 #if !defined(SK_BUILD_FOR_IOS) |
1448 int main(int argc, char** argv) { | 1451 int main(int argc, char** argv) { |
1449 SkCommandLineFlags::Parse(argc, argv); | 1452 SkCommandLineFlags::Parse(argc, argv); |
1450 return dm_main(); | 1453 return dm_main(); |
1451 } | 1454 } |
1452 #endif | 1455 #endif |
OLD | NEW |