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