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

Side by Side Diff: dm/DM.cpp

Issue 857373002: Allow pdf as a --config. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | no next file » | 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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698