| 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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 if (FLAGS_cpu) { | 858 if (FLAGS_cpu) { |
| 859 SINK("565", RasterSink, kRGB_565_SkColorType); | 859 SINK("565", RasterSink, kRGB_565_SkColorType); |
| 860 SINK("8888", RasterSink, kN32_SkColorType); | 860 SINK("8888", RasterSink, kN32_SkColorType); |
| 861 SINK("srgb", RasterSink, kN32_SkColorType, kSRGB_SkColorProfileType); | 861 SINK("srgb", RasterSink, kN32_SkColorType, kSRGB_SkColorProfileType); |
| 862 SINK("f16", RasterSink, kRGBA_F16_SkColorType); | 862 SINK("f16", RasterSink, kRGBA_F16_SkColorType); |
| 863 SINK("pdf", PDFSink); | 863 SINK("pdf", PDFSink); |
| 864 SINK("skp", SKPSink); | 864 SINK("skp", SKPSink); |
| 865 SINK("svg", SVGSink); | 865 SINK("svg", SVGSink); |
| 866 SINK("null", NullSink); | 866 SINK("null", NullSink); |
| 867 SINK("xps", XPSSink); | 867 SINK("xps", XPSSink); |
| 868 SINK("pdfa", PDFSink, true); |
| 868 } | 869 } |
| 869 #undef SINK | 870 #undef SINK |
| 870 return nullptr; | 871 return nullptr; |
| 871 } | 872 } |
| 872 | 873 |
| 873 static Sink* create_via(const SkString& tag, Sink* wrapped) { | 874 static Sink* create_via(const SkString& tag, Sink* wrapped) { |
| 874 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } | 875 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } |
| 875 VIA("twice", ViaTwice, wrapped); | 876 VIA("twice", ViaTwice, wrapped); |
| 876 VIA("serialize", ViaSerialization, wrapped); | 877 VIA("serialize", ViaSerialization, wrapped); |
| 877 VIA("pic", ViaPicture, wrapped); | 878 VIA("pic", ViaPicture, wrapped); |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1418 #endif | 1419 #endif |
| 1419 } | 1420 } |
| 1420 } // namespace skiatest | 1421 } // namespace skiatest |
| 1421 | 1422 |
| 1422 #if !defined(SK_BUILD_FOR_IOS) | 1423 #if !defined(SK_BUILD_FOR_IOS) |
| 1423 int main(int argc, char** argv) { | 1424 int main(int argc, char** argv) { |
| 1424 SkCommandLineFlags::Parse(argc, argv); | 1425 SkCommandLineFlags::Parse(argc, argv); |
| 1425 return dm_main(); | 1426 return dm_main(); |
| 1426 } | 1427 } |
| 1427 #endif | 1428 #endif |
| OLD | NEW |