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); |
239 } | 240 } |
240 #undef SINK | 241 #undef SINK |
241 return NULL; | 242 return NULL; |
242 } | 243 } |
243 | 244 |
244 static Sink* create_via(const char* tag, Sink* wrapped) { | 245 static Sink* create_via(const char* tag, Sink* wrapped) { |
245 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 246 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} |
246 VIA("pipe", ViaPipe, wrapped); | 247 VIA("pipe", ViaPipe, wrapped); |
247 VIA("serialize", ViaSerialization, wrapped); | 248 VIA("serialize", ViaSerialization, wrapped); |
248 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); | 249 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 } | 566 } |
566 return 0; | 567 return 0; |
567 } | 568 } |
568 | 569 |
569 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 570 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
570 int main(int argc, char** argv) { | 571 int main(int argc, char** argv) { |
571 SkCommandLineFlags::Parse(argc, argv); | 572 SkCommandLineFlags::Parse(argc, argv); |
572 return dm_main(); | 573 return dm_main(); |
573 } | 574 } |
574 #endif | 575 #endif |
OLD | NEW |