| 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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 | 863 |
| 864 static Sink* create_via(const SkString& tag, Sink* wrapped) { | 864 static Sink* create_via(const SkString& tag, Sink* wrapped) { |
| 865 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } | 865 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } |
| 866 VIA("twice", ViaTwice, wrapped); | 866 VIA("twice", ViaTwice, wrapped); |
| 867 VIA("serialize", ViaSerialization, wrapped); | 867 VIA("serialize", ViaSerialization, wrapped); |
| 868 VIA("pic", ViaPicture, wrapped); | 868 VIA("pic", ViaPicture, wrapped); |
| 869 VIA("2ndpic", ViaSecondPicture, wrapped); | 869 VIA("2ndpic", ViaSecondPicture, wrapped); |
| 870 VIA("sp", ViaSingletonPictures, wrapped); | 870 VIA("sp", ViaSingletonPictures, wrapped); |
| 871 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 871 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
| 872 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 872 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
| 873 VIA("mojo", ViaMojo, wrapped); | |
| 874 | 873 |
| 875 if (FLAGS_matrix.count() == 4) { | 874 if (FLAGS_matrix.count() == 4) { |
| 876 SkMatrix m; | 875 SkMatrix m; |
| 877 m.reset(); | 876 m.reset(); |
| 878 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); | 877 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); |
| 879 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); | 878 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); |
| 880 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); | 879 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); |
| 881 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); | 880 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); |
| 882 VIA("matrix", ViaMatrix, m, wrapped); | 881 VIA("matrix", ViaMatrix, m, wrapped); |
| 883 VIA("upright", ViaUpright, m, wrapped); | 882 VIA("upright", ViaUpright, m, wrapped); |
| (...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 #endif | 1464 #endif |
| 1466 } | 1465 } |
| 1467 } // namespace skiatest | 1466 } // namespace skiatest |
| 1468 | 1467 |
| 1469 #if !defined(SK_BUILD_FOR_IOS) | 1468 #if !defined(SK_BUILD_FOR_IOS) |
| 1470 int main(int argc, char** argv) { | 1469 int main(int argc, char** argv) { |
| 1471 SkCommandLineFlags::Parse(argc, argv); | 1470 SkCommandLineFlags::Parse(argc, argv); |
| 1472 return dm_main(); | 1471 return dm_main(); |
| 1473 } | 1472 } |
| 1474 #endif | 1473 #endif |
| OLD | NEW |