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 "OverwriteLine.h" | 4 #include "OverwriteLine.h" |
5 #include "ProcStats.h" | 5 #include "ProcStats.h" |
6 #include "SkBBHFactory.h" | 6 #include "SkBBHFactory.h" |
7 #include "SkChecksum.h" | 7 #include "SkChecksum.h" |
8 #include "SkCommonFlags.h" | 8 #include "SkCommonFlags.h" |
9 #include "SkForceLinking.h" | 9 #include "SkForceLinking.h" |
10 #include "SkGraphics.h" | 10 #include "SkGraphics.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 #endif | 201 #endif |
202 #if SK_MESA | 202 #if SK_MESA |
203 SINK("mesa", GPUSink, Gr::kMESA_GLContextType, api, 0, false, F
LAGS_gpu_threading); | 203 SINK("mesa", GPUSink, Gr::kMESA_GLContextType, api, 0, false, F
LAGS_gpu_threading); |
204 #endif | 204 #endif |
205 } | 205 } |
206 | 206 |
207 if (FLAGS_cpu) { | 207 if (FLAGS_cpu) { |
208 SINK("565", RasterSink, kRGB_565_SkColorType); | 208 SINK("565", RasterSink, kRGB_565_SkColorType); |
209 SINK("8888", RasterSink, kN32_SkColorType); | 209 SINK("8888", RasterSink, kN32_SkColorType); |
210 SINK("pdf", PDFSink); | 210 SINK("pdf", PDFSink); |
| 211 SINK("skp", SKPSink); |
211 } | 212 } |
212 #undef SINK | 213 #undef SINK |
213 return NULL; | 214 return NULL; |
214 } | 215 } |
215 | 216 |
216 static Sink* create_via(const char* tag, Sink* wrapped) { | 217 static Sink* create_via(const char* tag, Sink* wrapped) { |
217 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 218 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} |
218 VIA("pipe", ViaPipe, wrapped); | 219 VIA("pipe", ViaPipe, wrapped); |
219 VIA("serialize", ViaSerialization, wrapped); | 220 VIA("serialize", ViaSerialization, wrapped); |
220 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); | 221 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 } | 530 } |
530 return 0; | 531 return 0; |
531 } | 532 } |
532 | 533 |
533 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 534 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
534 int main(int argc, char** argv) { | 535 int main(int argc, char** argv) { |
535 SkCommandLineFlags::Parse(argc, argv); | 536 SkCommandLineFlags::Parse(argc, argv); |
536 return dm_main(); | 537 return dm_main(); |
537 } | 538 } |
538 #endif | 539 #endif |
OLD | NEW |