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

Side by Side Diff: dm/DM.cpp

Issue 963953002: XPS, DM: add SkDocument::CreateXPS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix iOS compile Created 5 years, 9 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 "DMSrcSinkAndroid.h" 4 #include "DMSrcSinkAndroid.h"
5 #include "OverwriteLine.h" 5 #include "OverwriteLine.h"
6 #include "ProcStats.h" 6 #include "ProcStats.h"
7 #include "SkBBHFactory.h" 7 #include "SkBBHFactory.h"
8 #include "SkChecksum.h" 8 #include "SkChecksum.h"
9 #include "SkCommonFlags.h" 9 #include "SkCommonFlags.h"
10 #include "SkForceLinking.h" 10 #include "SkForceLinking.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 SINK("hwui", HWUISink); 229 SINK("hwui", HWUISink);
230 #endif 230 #endif
231 231
232 if (FLAGS_cpu) { 232 if (FLAGS_cpu) {
233 SINK("565", RasterSink, kRGB_565_SkColorType); 233 SINK("565", RasterSink, kRGB_565_SkColorType);
234 SINK("8888", RasterSink, kN32_SkColorType); 234 SINK("8888", RasterSink, kN32_SkColorType);
235 SINK("pdf", PDFSink); 235 SINK("pdf", PDFSink);
236 SINK("skp", SKPSink); 236 SINK("skp", SKPSink);
237 SINK("svg", SVGSink); 237 SINK("svg", SVGSink);
238 SINK("null", NullSink); 238 SINK("null", NullSink);
239 SINK("xps", XPSSink);
239 } 240 }
240 #undef SINK 241 #undef SINK
241 return NULL; 242 return NULL;
242 } 243 }
243 244
244 static Sink* create_via(const char* tag, Sink* wrapped) { 245 static Sink* create_via(const char* tag, Sink* wrapped) {
245 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__); } 246 #define VIA(t, via, ...) if (0 == strcmp(t, tag)) { return new via(__VA_ARGS__); }
246 VIA("pipe", ViaPipe, wrapped); 247 VIA("pipe", ViaPipe, wrapped);
247 VIA("serialize", ViaSerialization, wrapped); 248 VIA("serialize", ViaSerialization, wrapped);
248 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped); 249 VIA("tiles", ViaTiles, 256, 256, NULL, wrapped);
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 } 566 }
566 return 0; 567 return 0;
567 } 568 }
568 569
569 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 570 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
570 int main(int argc, char** argv) { 571 int main(int argc, char** argv) {
571 SkCommandLineFlags::Parse(argc, argv); 572 SkCommandLineFlags::Parse(argc, argv);
572 return dm_main(); 573 return dm_main();
573 } 574 }
574 #endif 575 #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