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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } | 637 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } |
638 VIA("twice", ViaTwice, wrapped); | 638 VIA("twice", ViaTwice, wrapped); |
639 VIA("serialize", ViaSerialization, wrapped); | 639 VIA("serialize", ViaSerialization, wrapped); |
640 VIA("pic", ViaPicture, wrapped); | 640 VIA("pic", ViaPicture, wrapped); |
641 VIA("2ndpic", ViaSecondPicture, wrapped); | 641 VIA("2ndpic", ViaSecondPicture, wrapped); |
642 VIA("sp", ViaSingletonPictures, wrapped); | 642 VIA("sp", ViaSingletonPictures, wrapped); |
643 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 643 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
644 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 644 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
645 VIA("remote", ViaRemote, false, wrapped); | 645 VIA("remote", ViaRemote, false, wrapped); |
646 VIA("remote_cache", ViaRemote, true, wrapped); | 646 VIA("remote_cache", ViaRemote, true, wrapped); |
| 647 VIA("mojo", ViaMojo, wrapped); |
647 | 648 |
648 if (FLAGS_matrix.count() == 4) { | 649 if (FLAGS_matrix.count() == 4) { |
649 SkMatrix m; | 650 SkMatrix m; |
650 m.reset(); | 651 m.reset(); |
651 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); | 652 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); |
652 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); | 653 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); |
653 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); | 654 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); |
654 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); | 655 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); |
655 VIA("matrix", ViaMatrix, m, wrapped); | 656 VIA("matrix", ViaMatrix, m, wrapped); |
656 VIA("upright", ViaUpright, m, wrapped); | 657 VIA("upright", ViaUpright, m, wrapped); |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 Reporter* reporter, | 1259 Reporter* reporter, |
1259 GrContextFactory* fac
tory); | 1260 GrContextFactory* fac
tory); |
1260 } // namespace skiatest | 1261 } // namespace skiatest |
1261 | 1262 |
1262 #if !defined(SK_BUILD_FOR_IOS) | 1263 #if !defined(SK_BUILD_FOR_IOS) |
1263 int main(int argc, char** argv) { | 1264 int main(int argc, char** argv) { |
1264 SkCommandLineFlags::Parse(argc, argv); | 1265 SkCommandLineFlags::Parse(argc, argv); |
1265 return dm_main(); | 1266 return dm_main(); |
1266 } | 1267 } |
1267 #endif | 1268 #endif |
OLD | NEW |