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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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("pipe", ViaPipe, wrapped); | 369 VIA("pipe", ViaPipe, wrapped); |
370 VIA("serialize", ViaSerialization, wrapped); | 370 VIA("serialize", ViaSerialization, wrapped); |
| 371 VIA("deferred", ViaDeferred, wrapped); |
371 VIA("2ndpic", ViaSecondPicture, wrapped); | 372 VIA("2ndpic", ViaSecondPicture, wrapped); |
372 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); | 373 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); |
373 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | 374 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
374 | 375 |
375 if (FLAGS_matrix.count() == 4) { | 376 if (FLAGS_matrix.count() == 4) { |
376 SkMatrix m; | 377 SkMatrix m; |
377 m.reset(); | 378 m.reset(); |
378 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); | 379 m.setScaleX((SkScalar)atof(FLAGS_matrix[0])); |
379 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); | 380 m.setSkewX ((SkScalar)atof(FLAGS_matrix[1])); |
380 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); | 381 m.setSkewY ((SkScalar)atof(FLAGS_matrix[2])); |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 } | 756 } |
756 return 0; | 757 return 0; |
757 } | 758 } |
758 | 759 |
759 #if !defined(SK_BUILD_FOR_IOS) | 760 #if !defined(SK_BUILD_FOR_IOS) |
760 int main(int argc, char** argv) { | 761 int main(int argc, char** argv) { |
761 SkCommandLineFlags::Parse(argc, argv); | 762 SkCommandLineFlags::Parse(argc, argv); |
762 return dm_main(); | 763 return dm_main(); |
763 } | 764 } |
764 #endif | 765 #endif |
OLD | NEW |