| 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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 SINK("skp", SKPSink); | 636 SINK("skp", SKPSink); |
| 637 SINK("svg", SVGSink); | 637 SINK("svg", SVGSink); |
| 638 SINK("null", NullSink); | 638 SINK("null", NullSink); |
| 639 SINK("xps", XPSSink); | 639 SINK("xps", XPSSink); |
| 640 } | 640 } |
| 641 #undef SINK | 641 #undef SINK |
| 642 return nullptr; | 642 return nullptr; |
| 643 } | 643 } |
| 644 | 644 |
| 645 static Sink* create_via(const char* tag, Sink* wrapped) { | 645 static Sink* create_via(const char* tag, Sink* wrapped) { |
| 646 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 646 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(t, __VA_ARGS_
_); } |
| 647 VIA("twice", ViaTwice, wrapped); | 647 VIA("twice", ViaTwice, wrapped); |
| 648 VIA("pipe", ViaPipe, wrapped); | 648 VIA("pipe", ViaPipe, wrapped); |
| 649 VIA("serialize", ViaSerialization, wrapped); | 649 VIA("serialize", ViaSerialization, wrapped); |
| 650 VIA("2ndpic", ViaSecondPicture, wrapped); | 650 VIA("2ndpic", ViaSecondPicture, wrapped); |
| 651 VIA("sp", ViaSingletonPictures, wrapped); | 651 VIA("sp", ViaSingletonPictures, wrapped); |
| 652 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); | 652 VIA("tiles", ViaTiles, 256, 256, nullptr, wrapped); |
| 653 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 653 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
| 654 VIA("remote", ViaRemote, false, wrapped); | 654 VIA("remote", ViaRemote, false, wrapped); |
| 655 VIA("remote_cache", ViaRemote, true, wrapped); | 655 VIA("remote_cache", ViaRemote, true, wrapped); |
| 656 | 656 |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 Reporter* reporter, | 1218 Reporter* reporter, |
| 1219 GrContextFactory* fac
tory); | 1219 GrContextFactory* fac
tory); |
| 1220 } // namespace skiatest | 1220 } // namespace skiatest |
| 1221 | 1221 |
| 1222 #if !defined(SK_BUILD_FOR_IOS) | 1222 #if !defined(SK_BUILD_FOR_IOS) |
| 1223 int main(int argc, char** argv) { | 1223 int main(int argc, char** argv) { |
| 1224 SkCommandLineFlags::Parse(argc, argv); | 1224 SkCommandLineFlags::Parse(argc, argv); |
| 1225 return dm_main(); | 1225 return dm_main(); |
| 1226 } | 1226 } |
| 1227 #endif | 1227 #endif |
| OLD | NEW |