Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: dm/DM.cpp

Issue 885733002: Fold gmtoskp into DM, as --src gm --config skp. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698