| OLD | NEW |
| 1 #include "CrashHandler.h" | 1 #include "CrashHandler.h" |
| 2 #include "DMJsonWriter.h" | 2 #include "DMJsonWriter.h" |
| 3 #include "DMSrcSink.h" | 3 #include "DMSrcSink.h" |
| 4 #include "DMSrcSinkAndroid.h" | 4 #include "DMSrcSinkAndroid.h" |
| 5 #include "OverwriteLine.h" | 5 #include "OverwriteLine.h" |
| 6 #include "ProcStats.h" | 6 #include "ProcStats.h" |
| 7 #include "SkBBHFactory.h" | 7 #include "SkBBHFactory.h" |
| 8 #include "SkChecksum.h" | 8 #include "SkChecksum.h" |
| 9 #include "SkCommonFlags.h" | 9 #include "SkCommonFlags.h" |
| 10 #include "SkForceLinking.h" | 10 #include "SkForceLinking.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 SINK("hwui", HWUISink); | 229 SINK("hwui", HWUISink); |
| 230 #endif | 230 #endif |
| 231 | 231 |
| 232 if (FLAGS_cpu) { | 232 if (FLAGS_cpu) { |
| 233 SINK("565", RasterSink, kRGB_565_SkColorType); | 233 SINK("565", RasterSink, kRGB_565_SkColorType); |
| 234 SINK("8888", RasterSink, kN32_SkColorType); | 234 SINK("8888", RasterSink, kN32_SkColorType); |
| 235 SINK("pdf", PDFSink); | 235 SINK("pdf", PDFSink); |
| 236 SINK("skp", SKPSink); | 236 SINK("skp", SKPSink); |
| 237 SINK("svg", SVGSink); | 237 SINK("svg", SVGSink); |
| 238 SINK("null", NullSink); | 238 SINK("null", NullSink); |
| 239 SINK("xps", XPSSink); | |
| 240 } | 239 } |
| 241 #undef SINK | 240 #undef SINK |
| 242 return NULL; | 241 return NULL; |
| 243 } | 242 } |
| 244 | 243 |
| 245 static Sink* create_via(const char* tag, Sink* wrapped) { | 244 static Sink* create_via(const char* tag, Sink* wrapped) { |
| 246 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 245 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} |
| 247 VIA("pipe", ViaPipe, wrapped); | 246 VIA("pipe", ViaPipe, wrapped); |
| 248 VIA("serialize", ViaSerialization, wrapped); | 247 VIA("serialize", ViaSerialization, wrapped); |
| 249 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); | 248 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 } | 565 } |
| 567 return 0; | 566 return 0; |
| 568 } | 567 } |
| 569 | 568 |
| 570 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 569 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 571 int main(int argc, char** argv) { | 570 int main(int argc, char** argv) { |
| 572 SkCommandLineFlags::Parse(argc, argv); | 571 SkCommandLineFlags::Parse(argc, argv); |
| 573 return dm_main(); | 572 return dm_main(); |
| 574 } | 573 } |
| 575 #endif | 574 #endif |
| OLD | NEW |