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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 return nullptr; | 846 return nullptr; |
847 } | 847 } |
848 | 848 |
849 static Sink* create_via(const SkString& tag, Sink* wrapped) { | 849 static Sink* create_via(const SkString& tag, Sink* wrapped) { |
850 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } | 850 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } |
851 VIA("twice", ViaTwice, wrapped); | 851 VIA("twice", ViaTwice, wrapped); |
852 VIA("serialize", ViaSerialization, wrapped); | 852 VIA("serialize", ViaSerialization, wrapped); |
853 VIA("pic", ViaPicture, wrapped); | 853 VIA("pic", ViaPicture, wrapped); |
854 VIA("2ndpic", ViaSecondPicture, wrapped); | 854 VIA("2ndpic", ViaSecondPicture, wrapped); |
855 VIA("sp", ViaSingletonPictures, wrapped); | 855 VIA("sp", ViaSingletonPictures, wrapped); |
| 856 VIA("defer", ViaDefer, wrapped); |
856 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 857 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
857 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 858 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
858 | 859 |
859 if (FLAGS_matrix.count() == 4) { | 860 if (FLAGS_matrix.count() == 4) { |
860 SkMatrix m; | 861 SkMatrix m; |
861 m.reset(); | 862 m.reset(); |
862 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); | 863 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); |
863 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); | 864 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); |
864 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); | 865 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); |
865 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); | 866 m.setScaleY((SkScalar)atof(FLAGS_matrix[3])); |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 #endif | 1403 #endif |
1403 } | 1404 } |
1404 } // namespace skiatest | 1405 } // namespace skiatest |
1405 | 1406 |
1406 #if !defined(SK_BUILD_FOR_IOS) | 1407 #if !defined(SK_BUILD_FOR_IOS) |
1407 int main(int argc, char** argv) { | 1408 int main(int argc, char** argv) { |
1408 SkCommandLineFlags::Parse(argc, argv); | 1409 SkCommandLineFlags::Parse(argc, argv); |
1409 return dm_main(); | 1410 return dm_main(); |
1410 } | 1411 } |
1411 #endif | 1412 #endif |
OLD | NEW |