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 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 SINK("null", NullSink); | 872 SINK("null", NullSink); |
873 SINK("xps", XPSSink); | 873 SINK("xps", XPSSink); |
874 SINK("pdfa", PDFSink, true); | 874 SINK("pdfa", PDFSink, true); |
875 } | 875 } |
876 #undef SINK | 876 #undef SINK |
877 return nullptr; | 877 return nullptr; |
878 } | 878 } |
879 | 879 |
880 static Sink* create_via(const SkString& tag, Sink* wrapped) { | 880 static Sink* create_via(const SkString& tag, Sink* wrapped) { |
881 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } | 881 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } |
| 882 VIA("lite", ViaLite, wrapped); |
882 VIA("twice", ViaTwice, wrapped); | 883 VIA("twice", ViaTwice, wrapped); |
883 VIA("serialize", ViaSerialization, wrapped); | 884 VIA("serialize", ViaSerialization, wrapped); |
884 VIA("pic", ViaPicture, wrapped); | 885 VIA("pic", ViaPicture, wrapped); |
885 VIA("2ndpic", ViaSecondPicture, wrapped); | 886 VIA("2ndpic", ViaSecondPicture, wrapped); |
886 VIA("sp", ViaSingletonPictures, wrapped); | 887 VIA("sp", ViaSingletonPictures, wrapped); |
887 VIA("defer", ViaDefer, wrapped); | 888 VIA("defer", ViaDefer, wrapped); |
888 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 889 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
889 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 890 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
890 | 891 |
891 if (FLAGS_matrix.count() == 4) { | 892 if (FLAGS_matrix.count() == 4) { |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1434 #endif | 1435 #endif |
1435 } | 1436 } |
1436 } // namespace skiatest | 1437 } // namespace skiatest |
1437 | 1438 |
1438 #if !defined(SK_BUILD_FOR_IOS) | 1439 #if !defined(SK_BUILD_FOR_IOS) |
1439 int main(int argc, char** argv) { | 1440 int main(int argc, char** argv) { |
1440 SkCommandLineFlags::Parse(argc, argv); | 1441 SkCommandLineFlags::Parse(argc, argv); |
1441 return dm_main(); | 1442 return dm_main(); |
1442 } | 1443 } |
1443 #endif | 1444 #endif |
OLD | NEW |