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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 SINK("565", RasterSink, kRGB_565_SkColorType); | 164 SINK("565", RasterSink, kRGB_565_SkColorType); |
165 SINK("8888", RasterSink, kN32_SkColorType); | 165 SINK("8888", RasterSink, kN32_SkColorType); |
166 SINK("pdf", PDFSink); | 166 SINK("pdf", PDFSink); |
167 } | 167 } |
168 #undef SINK | 168 #undef SINK |
169 return NULL; | 169 return NULL; |
170 } | 170 } |
171 | 171 |
172 static Sink* create_via(const char* tag, Sink* wrapped) { | 172 static Sink* create_via(const char* tag, Sink* wrapped) { |
173 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} | 173 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__);
} |
| 174 VIA("pipe", ViaPipe, wrapped); |
174 VIA("serialize", ViaSerialization, wrapped); | 175 VIA("serialize", ViaSerialization, wrapped); |
175 | 176 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); |
176 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); | 177 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); |
177 VIA("tiles_rt", ViaTiles, 256, 256, new SkRTreeFactory, wrapped); | |
178 | |
179 const int xp = SkGPipeWriter::kCrossProcess_Flag, | |
180 sa = xp | SkGPipeWriter::kSharedAddressSpace_Flag; | |
181 VIA("pipe", ViaPipe, 0, wrapped); | |
182 VIA("pipe_xp", ViaPipe, xp, wrapped); | |
183 VIA("pipe_sa", ViaPipe, sa, wrapped); | |
184 | 178 |
185 if (FLAGS_matrix.count() == 9) { | 179 if (FLAGS_matrix.count() == 9) { |
186 SkMatrix m; | 180 SkMatrix m; |
187 for (int i = 0; i < 9; i++) { | 181 for (int i = 0; i < 9; i++) { |
188 m[i] = (SkScalar)atof(FLAGS_matrix[i]); | 182 m[i] = (SkScalar)atof(FLAGS_matrix[i]); |
189 } | 183 } |
190 VIA("matrix", ViaMatrix, m, wrapped); | 184 VIA("matrix", ViaMatrix, m, wrapped); |
191 } | 185 } |
192 #undef VIA | 186 #undef VIA |
193 return NULL; | 187 return NULL; |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 } | 464 } |
471 return 0; | 465 return 0; |
472 } | 466 } |
473 | 467 |
474 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 468 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
475 int main(int argc, char** argv) { | 469 int main(int argc, char** argv) { |
476 SkCommandLineFlags::Parse(argc, argv); | 470 SkCommandLineFlags::Parse(argc, argv); |
477 return dm_main(); | 471 return dm_main(); |
478 } | 472 } |
479 #endif | 473 #endif |
OLD | NEW |