| 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 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 SINK("null", NullSink); | 616 SINK("null", NullSink); |
| 617 SINK("xps", XPSSink); | 617 SINK("xps", XPSSink); |
| 618 } | 618 } |
| 619 #undef SINK | 619 #undef SINK |
| 620 return nullptr; | 620 return nullptr; |
| 621 } | 621 } |
| 622 | 622 |
| 623 static Sink* create_via(const SkString& tag, Sink* wrapped) { | 623 static Sink* create_via(const SkString& tag, Sink* wrapped) { |
| 624 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } | 624 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } |
| 625 VIA("twice", ViaTwice, wrapped); | 625 VIA("twice", ViaTwice, wrapped); |
| 626 VIA("pipe", ViaPipe, wrapped); | |
| 627 VIA("serialize", ViaSerialization, wrapped); | 626 VIA("serialize", ViaSerialization, wrapped); |
| 628 VIA("2ndpic", ViaSecondPicture, wrapped); | 627 VIA("2ndpic", ViaSecondPicture, wrapped); |
| 629 VIA("sp", ViaSingletonPictures, wrapped); | 628 VIA("sp", ViaSingletonPictures, wrapped); |
| 630 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 629 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
| 631 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 630 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
| 632 VIA("remote", ViaRemote, false, wrapped); | 631 VIA("remote", ViaRemote, false, wrapped); |
| 633 VIA("remote_cache", ViaRemote, true, wrapped); | 632 VIA("remote_cache", ViaRemote, true, wrapped); |
| 634 | 633 |
| 635 if (FLAGS_matrix.count() == 4) { | 634 if (FLAGS_matrix.count() == 4) { |
| 636 SkMatrix m; | 635 SkMatrix m; |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1240 Reporter* reporter, | 1239 Reporter* reporter, |
| 1241 GrContextFactory* fac
tory); | 1240 GrContextFactory* fac
tory); |
| 1242 } // namespace skiatest | 1241 } // namespace skiatest |
| 1243 | 1242 |
| 1244 #if !defined(SK_BUILD_FOR_IOS) | 1243 #if !defined(SK_BUILD_FOR_IOS) |
| 1245 int main(int argc, char** argv) { | 1244 int main(int argc, char** argv) { |
| 1246 SkCommandLineFlags::Parse(argc, argv); | 1245 SkCommandLineFlags::Parse(argc, argv); |
| 1247 return dm_main(); | 1246 return dm_main(); |
| 1248 } | 1247 } |
| 1249 #endif | 1248 #endif |
| OLD | NEW |