| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 static Sink* create_via(const char* tag, Sink* wrapped) { | 605 static Sink* create_via(const char* tag, Sink* wrapped) { |
| 606 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 606 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} |
| 607 VIA("twice", ViaTwice, wrapped); | 607 VIA("twice", ViaTwice, wrapped); |
| 608 VIA("pipe", ViaPipe, wrapped); | 608 VIA("pipe", ViaPipe, wrapped); |
| 609 VIA("serialize", ViaSerialization, wrapped); | 609 VIA("serialize", ViaSerialization, wrapped); |
| 610 VIA("2ndpic", ViaSecondPicture, wrapped); | 610 VIA("2ndpic", ViaSecondPicture, wrapped); |
| 611 VIA("sp", ViaSingletonPictures, wrapped); | 611 VIA("sp", ViaSingletonPictures, wrapped); |
| 612 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 612 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
| 613 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 613 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
| 614 VIA("remote", ViaRemote, false, wrapped); |
| 615 VIA("remote_cache", ViaRemote, true, wrapped); |
| 614 | 616 |
| 615 if (FLAGS_matrix.count() == 4) { | 617 if (FLAGS_matrix.count() == 4) { |
| 616 SkMatrix m; | 618 SkMatrix m; |
| 617 m.reset(); | 619 m.reset(); |
| 618 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); | 620 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); |
| 619 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); | 621 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); |
| 620 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); | 622 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); |
| 621 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); | 623 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); |
| 622 VIA("matrix", ViaMatrix, m, wrapped); | 624 VIA("matrix", ViaMatrix, m, wrapped); |
| 623 VIA("upright", ViaUpright, m, wrapped); | 625 VIA("upright", ViaUpright, m, wrapped); |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 #endif // SK_PDF_IMAGE_STATS | 1108 #endif // SK_PDF_IMAGE_STATS |
| 1107 return 0; | 1109 return 0; |
| 1108 } | 1110 } |
| 1109 | 1111 |
| 1110 #if !defined(SK_BUILD_FOR_IOS) | 1112 #if !defined(SK_BUILD_FOR_IOS) |
| 1111 int main(int argc, char** argv) { | 1113 int main(int argc, char** argv) { |
| 1112 SkCommandLineFlags::Parse(argc, argv); | 1114 SkCommandLineFlags::Parse(argc, argv); |
| 1113 return dm_main(); | 1115 return dm_main(); |
| 1114 } | 1116 } |
| 1115 #endif | 1117 #endif |
| OLD | NEW |