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, | 780 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kQCMS_HPZR30w_Mode, k
N32_SkColorType); |
781 kRGBA_8888_SkColorType); | |
782 push_src("image", "color_codec_QCMS_HPZR30w", src); | 781 push_src("image", "color_codec_QCMS_HPZR30w", src); |
783 #endif | 782 #endif |
784 } | 783 } |
785 | 784 |
786 return true; | 785 return true; |
787 } | 786 } |
788 | 787 |
789 static void push_sink(const SkCommandLineConfig& config, Sink* s) { | 788 static void push_sink(const SkCommandLineConfig& config, Sink* s) { |
790 SkAutoTDelete<Sink> sink(s); | 789 SkAutoTDelete<Sink> sink(s); |
791 | 790 |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 #endif | 1430 #endif |
1432 } | 1431 } |
1433 } // namespace skiatest | 1432 } // namespace skiatest |
1434 | 1433 |
1435 #if !defined(SK_BUILD_FOR_IOS) | 1434 #if !defined(SK_BUILD_FOR_IOS) |
1436 int main(int argc, char** argv) { | 1435 int main(int argc, char** argv) { |
1437 SkCommandLineFlags::Parse(argc, argv); | 1436 SkCommandLineFlags::Parse(argc, argv); |
1438 return dm_main(); | 1437 return dm_main(); |
1439 } | 1438 } |
1440 #endif | 1439 #endif |
OLD | NEW |