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

Unified Diff: dm/DM.cpp

Issue 1063873004: DM: add --multiPage option (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index e66584803dfdc953416c27bb52046a35f476af5d..1b9b86a1ef455dcc9f89226f4f1384fc919fc083 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -46,6 +46,9 @@ DEFINE_string(uninterestingHashesFile, "",
"File containing a list of uninteresting hashes. If a result hashes to something in "
"this list, no image is written for that result.");
+DEFINE_bool(multiPage, false, "For document-type backends, render the source"
+ " into multiple pages");
+
__SK_FORCE_IMAGE_DECODER_LINKING;
using namespace DM;
@@ -345,11 +348,11 @@ static Sink* create_sink(const char* tag) {
if (FLAGS_cpu) {
SINK("565", RasterSink, kRGB_565_SkColorType);
SINK("8888", RasterSink, kN32_SkColorType);
- SINK("pdf", PDFSink);
+ SINK("pdf", PDFSink, FLAGS_multiPage);
SINK("skp", SKPSink);
SINK("svg", SVGSink);
SINK("null", NullSink);
- SINK("xps", XPSSink);
+ SINK("xps", XPSSink, FLAGS_multiPage);
}
#undef SINK
return NULL;
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698