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

Side by Side Diff: dm/DM.cpp

Issue 1916093002: SkDocument/PDF: new API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-26 (Tuesday) 15:55:33 EDT Created 4 years, 7 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 | « bench/PDFBench.cpp ('k') | 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 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 if (FLAGS_cpu) { 858 if (FLAGS_cpu) {
859 SINK("565", RasterSink, kRGB_565_SkColorType); 859 SINK("565", RasterSink, kRGB_565_SkColorType);
860 SINK("8888", RasterSink, kN32_SkColorType); 860 SINK("8888", RasterSink, kN32_SkColorType);
861 SINK("srgb", RasterSink, kN32_SkColorType, kSRGB_SkColorProfileType); 861 SINK("srgb", RasterSink, kN32_SkColorType, kSRGB_SkColorProfileType);
862 SINK("f16", RasterSink, kRGBA_F16_SkColorType); 862 SINK("f16", RasterSink, kRGBA_F16_SkColorType);
863 SINK("pdf", PDFSink); 863 SINK("pdf", PDFSink);
864 SINK("skp", SKPSink); 864 SINK("skp", SKPSink);
865 SINK("svg", SVGSink); 865 SINK("svg", SVGSink);
866 SINK("null", NullSink); 866 SINK("null", NullSink);
867 SINK("xps", XPSSink); 867 SINK("xps", XPSSink);
868 SINK("pdfa", PDFSink, true);
868 } 869 }
869 #undef SINK 870 #undef SINK
870 return nullptr; 871 return nullptr;
871 } 872 }
872 873
873 static Sink* create_via(const SkString& tag, Sink* wrapped) { 874 static Sink* create_via(const SkString& tag, Sink* wrapped) {
874 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); } 875 #define VIA(t, via, ...) if (tag.equals(t)) { return new via(__VA_ARGS__); }
875 VIA("twice", ViaTwice, wrapped); 876 VIA("twice", ViaTwice, wrapped);
876 VIA("serialize", ViaSerialization, wrapped); 877 VIA("serialize", ViaSerialization, wrapped);
877 VIA("pic", ViaPicture, wrapped); 878 VIA("pic", ViaPicture, wrapped);
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 #endif 1419 #endif
1419 } 1420 }
1420 } // namespace skiatest 1421 } // namespace skiatest
1421 1422
1422 #if !defined(SK_BUILD_FOR_IOS) 1423 #if !defined(SK_BUILD_FOR_IOS)
1423 int main(int argc, char** argv) { 1424 int main(int argc, char** argv) {
1424 SkCommandLineFlags::Parse(argc, argv); 1425 SkCommandLineFlags::Parse(argc, argv);
1425 return dm_main(); 1426 return dm_main();
1426 } 1427 }
1427 #endif 1428 #endif
OLDNEW
« no previous file with comments | « bench/PDFBench.cpp ('k') | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698