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 "SkCommonFlags.h" | 7 #include "SkCommonFlags.h" |
8 #include "SkForceLinking.h" | 8 #include "SkForceLinking.h" |
9 #include "SkGraphics.h" | 9 #include "SkGraphics.h" |
10 #include "SkMD5.h" | 10 #include "SkMD5.h" |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 SINK("angle", GPUSink, Gr::kANGLE_GLContextType, api, 0, false, F
LAGS_gpu_threading); | 157 SINK("angle", GPUSink, Gr::kANGLE_GLContextType, api, 0, false, F
LAGS_gpu_threading); |
158 #endif | 158 #endif |
159 #if SK_MESA | 159 #if SK_MESA |
160 SINK("mesa", GPUSink, Gr::kMESA_GLContextType, api, 0, false, F
LAGS_gpu_threading); | 160 SINK("mesa", GPUSink, Gr::kMESA_GLContextType, api, 0, false, F
LAGS_gpu_threading); |
161 #endif | 161 #endif |
162 } | 162 } |
163 | 163 |
164 if (FLAGS_cpu) { | 164 if (FLAGS_cpu) { |
165 SINK("565", RasterSink, kRGB_565_SkColorType); | 165 SINK("565", RasterSink, kRGB_565_SkColorType); |
166 SINK("8888", RasterSink, kN32_SkColorType); | 166 SINK("8888", RasterSink, kN32_SkColorType); |
167 // TODO(mtklein): reenable once skiagold can handle .pdf uploads. | 167 SINK("pdf", PDFSink); |
168 //SINK("pdf", PDFSink); | |
169 } | 168 } |
170 #undef SINK | 169 #undef SINK |
171 return NULL; | 170 return NULL; |
172 } | 171 } |
173 | 172 |
174 static Sink* create_via(const char* tag, Sink* wrapped) { | 173 static Sink* create_via(const char* tag, Sink* wrapped) { |
175 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 174 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} |
176 VIA("serialize", ViaSerialization, wrapped); | 175 VIA("serialize", ViaSerialization, wrapped); |
177 | 176 |
178 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); | 177 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 } | 471 } |
473 return 0; | 472 return 0; |
474 } | 473 } |
475 | 474 |
476 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 475 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
477 int main(int argc, char** argv) { | 476 int main(int argc, char** argv) { |
478 SkCommandLineFlags::Parse(argc, argv); | 477 SkCommandLineFlags::Parse(argc, argv); |
479 return dm_main(); | 478 return dm_main(); |
480 } | 479 } |
481 #endif | 480 #endif |
OLD | NEW |