| 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 SINK("svg", SVGSink); | 359 SINK("svg", SVGSink); |
| 360 SINK("null", NullSink); | 360 SINK("null", NullSink); |
| 361 SINK("xps", XPSSink); | 361 SINK("xps", XPSSink); |
| 362 } | 362 } |
| 363 #undef SINK | 363 #undef SINK |
| 364 return NULL; | 364 return NULL; |
| 365 } | 365 } |
| 366 | 366 |
| 367 static Sink* create_via(const char* tag, Sink* wrapped) { | 367 static Sink* create_via(const char* tag, Sink* wrapped) { |
| 368 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 368 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} |
| 369 VIA("twice", ViaTwice, wrapped); |
| 369 VIA("pipe", ViaPipe, wrapped); | 370 VIA("pipe", ViaPipe, wrapped); |
| 370 VIA("serialize", ViaSerialization, wrapped); | 371 VIA("serialize", ViaSerialization, wrapped); |
| 371 VIA("deferred", ViaDeferred, wrapped); | 372 VIA("deferred", ViaDeferred, wrapped); |
| 372 VIA("2ndpic", ViaSecondPicture, wrapped); | 373 VIA("2ndpic", ViaSecondPicture, wrapped); |
| 373 VIA("sp", ViaSingletonPictures, wrapped); | 374 VIA("sp", ViaSingletonPictures, wrapped); |
| 374 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); | 375 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); |
| 375 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 376 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
| 376 | 377 |
| 377 if (FLAGS_matrix.count() == 4) { | 378 if (FLAGS_matrix.count() == 4) { |
| 378 SkMatrix m; | 379 SkMatrix m; |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 } | 758 } |
| 758 return 0; | 759 return 0; |
| 759 } | 760 } |
| 760 | 761 |
| 761 #if !defined(SK_BUILD_FOR_IOS) | 762 #if !defined(SK_BUILD_FOR_IOS) |
| 762 int main(int argc, char** argv) { | 763 int main(int argc, char** argv) { |
| 763 SkCommandLineFlags::Parse(argc, argv); | 764 SkCommandLineFlags::Parse(argc, argv); |
| 764 return dm_main(); | 765 return dm_main(); |
| 765 } | 766 } |
| 766 #endif | 767 #endif |
| OLD | NEW |