| 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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 | 768 |
| 769 static Sink* create_via(const SkString& tag, Sink* wrapped) { | 769 static Sink* create_via(const SkString& tag, Sink* wrapped) { |
| 770 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } | 770 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } |
| 771 VIA("twice", ViaTwice, wrapped); | 771 VIA("twice", ViaTwice, wrapped); |
| 772 VIA("serialize", ViaSerialization, wrapped); | 772 VIA("serialize", ViaSerialization, wrapped); |
| 773 VIA("pic", ViaPicture, wrapped); | 773 VIA("pic", ViaPicture, wrapped); |
| 774 VIA("2ndpic", ViaSecondPicture, wrapped); | 774 VIA("2ndpic", ViaSecondPicture, wrapped); |
| 775 VIA("sp", ViaSingletonPictures, wrapped); | 775 VIA("sp", ViaSingletonPictures, wrapped); |
| 776 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 776 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
| 777 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 777 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
| 778 VIA("remote", ViaRemote, false, wrapped); | |
| 779 VIA("remote_cache", ViaRemote, true, wrapped); | |
| 780 VIA("mojo", ViaMojo, wrapped); | 778 VIA("mojo", ViaMojo, wrapped); |
| 781 | 779 |
| 782 if (FLAGS_matrix.count() == 4) { | 780 if (FLAGS_matrix.count() == 4) { |
| 783 SkMatrix m; | 781 SkMatrix m; |
| 784 m.reset(); | 782 m.reset(); |
| 785 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); | 783 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); |
| 786 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); | 784 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); |
| 787 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); | 785 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); |
| 788 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); | 786 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); |
| 789 VIA("matrix", ViaMatrix, m, wrapped); | 787 VIA("matrix", ViaMatrix, m, wrapped); |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 Reporter* reporter, | 1398 Reporter* reporter, |
| 1401 GrContextFactory* fac
tory); | 1399 GrContextFactory* fac
tory); |
| 1402 } // namespace skiatest | 1400 } // namespace skiatest |
| 1403 | 1401 |
| 1404 #if !defined(SK_BUILD_FOR_IOS) | 1402 #if !defined(SK_BUILD_FOR_IOS) |
| 1405 int main(int argc, char** argv) { | 1403 int main(int argc, char** argv) { |
| 1406 SkCommandLineFlags::Parse(argc, argv); | 1404 SkCommandLineFlags::Parse(argc, argv); |
| 1407 return dm_main(); | 1405 return dm_main(); |
| 1408 } | 1406 } |
| 1409 #endif | 1407 #endif |
| OLD | NEW |