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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |