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 "DMJsonWriter.h" | 8 #include "DMJsonWriter.h" |
9 #include "DMSrcSink.h" | 9 #include "DMSrcSink.h" |
10 #include "DMSrcSinkAndroid.h" | 10 #include "DMSrcSinkAndroid.h" |
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 push_src("image", "color_codec_HPZR30w", src); | 770 push_src("image", "color_codec_HPZR30w", src); |
771 // TODO (msarett): | 771 // TODO (msarett): |
772 // Should we test this Dst in F16 mode (even though the Dst gamma is 2.2
instead of sRGB)? | 772 // Should we test this Dst in F16 mode (even though the Dst gamma is 2.2
instead of sRGB)? |
773 | 773 |
774 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kN32_
SkColorType); | 774 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kN32_
SkColorType); |
775 push_src("image", "color_codec_sRGB_kN32", src); | 775 push_src("image", "color_codec_sRGB_kN32", src); |
776 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kRGBA
_F16_SkColorType); | 776 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kDst_sRGB_Mode, kRGBA
_F16_SkColorType); |
777 push_src("image", "color_codec_sRGB_kF16", src); | 777 push_src("image", "color_codec_sRGB_kF16", src); |
778 | 778 |
779 #if defined(SK_TEST_QCMS) | 779 #if defined(SK_TEST_QCMS) |
780 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode, k
N32_SkColorType); | 780 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode, |
| 781 kRGBA_8888_SkColorType); |
781 push_src("image", "color_codec_QCMS_HPZR30w", src); | 782 push_src("image", "color_codec_QCMS_HPZR30w", src); |
782 #endif | 783 #endif |
783 } | 784 } |
784 | 785 |
785 return true; | 786 return true; |
786 } | 787 } |
787 | 788 |
788 static void push_sink(const SkCommandLineConfig& config, Sink* s) { | 789 static void push_sink(const SkCommandLineConfig& config, Sink* s) { |
789 SkAutoTDelete<Sink> sink(s); | 790 SkAutoTDelete<Sink> sink(s); |
790 | 791 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1430 #endif | 1431 #endif |
1431 } | 1432 } |
1432 } // namespace skiatest | 1433 } // namespace skiatest |
1433 | 1434 |
1434 #if !defined(SK_BUILD_FOR_IOS) | 1435 #if !defined(SK_BUILD_FOR_IOS) |
1435 int main(int argc, char** argv) { | 1436 int main(int argc, char** argv) { |
1436 SkCommandLineFlags::Parse(argc, argv); | 1437 SkCommandLineFlags::Parse(argc, argv); |
1437 return dm_main(); | 1438 return dm_main(); |
1438 } | 1439 } |
1439 #endif | 1440 #endif |
OLD | NEW |